#312287#312287

#312287 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.158 H 280.9°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#312287
RGBrgb(49, 34, 135)
HSLhsl(249, 60%, 33%)
HSVhsv(249, 75%, 53%)
CMYKcmyk(63.7%, 74.8%, 0%, 47.1%)
CIE-LABlab(22.11, 37.12, -53.88)
CIE-LCHlch(22.11, 65.43, 304.57°)
OKLaboklab(34.47% 0.0299 -0.1554)
OKLCHoklch(34.47% 0.158 280.9)
XYZxyz(6.2104, 3.5458, 23.2741)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312287 #788722
analogous
#224587 #312287 #632287
triadic
#312287 #873122 #228731
tetradic
#312287 #872245 #788722 #228763
square
#312287 #872245 #788722 #228763
split-complementary
#312287 #876322 #458722
monochromatic
#0E0925 #1F1656 #312287 #432EB8 #6450D3

Accessibility & contrast

On white

12.29
#312287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#312287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312287
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312287#FFFFFF#000000##FFFFFF
##3122871.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312287;
/* rgb */ color: rgb(49, 34, 135);
/* oklch */ color: oklch(34.5% 0.158 280.9);
Tailwind
colors: {
  custom: {
    50: '#755fab',
    500: '#312287',
    950: '#000000',
  },
}
SCSS
$custom: #312287;
$custom-light: #755fab;
$custom-dark: #000000;
JSON
{
  "hex": "#312287",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 248.911,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3447,
    "c": 0.15824,
    "h": 280.9
  },
  "luminance": 0.03546
}

Semantic roles & 50–950 ramp

primary
#312287
secondary
#A7B74E
accent
#E345CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312287

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

Preview Lab → · Contrast checker → · Palette generator →

#312287 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva