#31267A#31267A

#31267A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.136 H 282.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#31267A
RGBrgb(49, 38, 122)
HSLhsl(248, 53%, 31%)
HSVhsv(248, 69%, 48%)
CMYKcmyk(59.8%, 68.9%, 0%, 52.2%)
CIE-LABlab(21.74, 30.38, -46.27)
CIE-LCHlch(21.74, 55.35, 303.29°)
OKLaboklab(33.83% 0.0289 -0.1331)
OKLCHoklch(33.83% 0.136 282.2)
XYZxyz(5.4715, 3.4440, 18.7850)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31267A #6F7A26
analogous
#26457A #31267A #5B267A
triadic
#31267A #7A3126 #267A31
tetradic
#31267A #7A2645 #6F7A26 #267A5B
square
#31267A #7A2645 #6F7A26 #267A5B
split-complementary
#31267A #7A5B26 #457A26
monochromatic
#0C091D #1E174B #31267A #4435A9 #6151C9

Accessibility & contrast

On white

12.43
#31267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#31267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31267A
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31267A#FFFFFF#000000##FFFFFF
##31267A1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#083B4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31267a;
/* rgb */ color: rgb(49, 38, 122);
/* oklch */ color: oklch(33.8% 0.136 282.2);
Tailwind
colors: {
  custom: {
    50: '#7261a1',
    500: '#31267a',
    950: '#000000',
  },
}
SCSS
$custom: #31267a;
$custom-light: #7261a1;
$custom-dark: #000000;
JSON
{
  "hex": "#31267a",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 247.857,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33825,
    "c": 0.13622,
    "h": 282.2
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#31267A
secondary
#A0AC50
accent
#DC4CC9
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #31267A

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#31267A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva