#31267B#31267B

#31267B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.138 H 282.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#31267B
RGBrgb(49, 38, 123)
HSLhsl(248, 53%, 32%)
HSVhsv(248, 69%, 48%)
CMYKcmyk(60.2%, 69.1%, 0%, 51.8%)
CIE-LABlab(21.83, 30.72, -46.76)
CIE-LCHlch(21.83, 55.95, 303.31°)
OKLaboklab(33.92% 0.0288 -0.1345)
OKLCHoklch(33.92% 0.138 282.1)
XYZxyz(5.5338, 3.4689, 19.1130)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31267B #707B26
analogous
#26467B #31267B #5C267B
triadic
#31267B #7B3126 #267B31
tetradic
#31267B #7B2646 #707B26 #267B5C
square
#31267B #7B2646 #707B26 #267B5C
split-complementary
#31267B #7B5C26 #467B26
monochromatic
#0C091D #1E184C #31267B #4434AA #6152CA

Accessibility & contrast

On white

12.40
#31267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31267B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31267B#FFFFFF#000000##FFFFFF
##31267B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#053C4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31267b;
/* rgb */ color: rgb(49, 38, 123);
/* oklch */ color: oklch(33.9% 0.138 282.1);
Tailwind
colors: {
  custom: {
    50: '#7261a2',
    500: '#31267b',
    950: '#000000',
  },
}
SCSS
$custom: #31267b;
$custom-light: #7261a2;
$custom-dark: #000000;
JSON
{
  "hex": "#31267b",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 247.765,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33919,
    "c": 0.13759,
    "h": 282.1
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#31267B
secondary
#A1AD50
accent
#DC4CC9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #31267B

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

Preview Lab → · Contrast checker → · Palette generator →

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