#31267D#31267D

#31267D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.140 H 281.7°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#31267D
RGBrgb(49, 38, 125)
HSLhsl(248, 53%, 32%)
HSVhsv(248, 70%, 49%)
CMYKcmyk(60.8%, 69.6%, 0%, 51%)
CIE-LABlab(22.01, 31.40, -47.73)
CIE-LCHlch(22.01, 57.13, 303.34°)
OKLaboklab(34.11% 0.0285 -0.1374)
OKLCHoklch(34.11% 0.14 281.7)
XYZxyz(5.6603, 3.5195, 19.7791)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31267D #727D26
analogous
#26477D #31267D #5D267D
triadic
#31267D #7D3126 #267D31
tetradic
#31267D #7D2647 #727D26 #267D5D
square
#31267D #7D2647 #727D26 #267D5D
split-complementary
#31267D #7D5D26 #477D26
monochromatic
#0C091F #1F184E #31267D #4334AC #6253CB

Accessibility & contrast

On white

12.32
#31267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#31267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31267D
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31267D#FFFFFF#000000##FFFFFF
##31267D1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#013C4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31267d;
/* rgb */ color: rgb(49, 38, 125);
/* oklch */ color: oklch(34.1% 0.140 281.7);
Tailwind
colors: {
  custom: {
    50: '#7261a3',
    500: '#31267d',
    950: '#000000',
  },
}
SCSS
$custom: #31267d;
$custom-light: #7261a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31267d",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 247.586,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34108,
    "c": 0.14031,
    "h": 281.7
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#31267D
secondary
#A3AF50
accent
#DD4BCA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #31267D

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

Preview Lab → · Contrast checker → · Palette generator →

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