#312284#312284

#312284 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.154 H 281.4°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#312284
RGBrgb(49, 34, 132)
HSLhsl(249, 59%, 33%)
HSVhsv(249, 74%, 52%)
CMYKcmyk(62.9%, 74.2%, 0%, 48.2%)
CIE-LABlab(21.81, 36.14, -52.49)
CIE-LCHlch(21.81, 63.73, 304.55°)
OKLaboklab(34.17% 0.0306 -0.1513)
OKLCHoklch(34.17% 0.154 281.4)
XYZxyz(6.0022, 3.4625, 22.1774)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312284 #758422
analogous
#224484 #312284 #622284
triadic
#312284 #843122 #228431
tetradic
#312284 #842244 #758422 #228462
square
#312284 #842244 #758422 #228462
split-complementary
#312284 #846222 #448422
monochromatic
#0D0923 #1F1553 #312284 #432FB5 #634FD2

Accessibility & contrast

On white

12.41
#312284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#312284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312284
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312284#FFFFFF#000000##FFFFFF
##3122841.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312284;
/* rgb */ color: rgb(49, 34, 132);
/* oklch */ color: oklch(34.2% 0.154 281.4);
Tailwind
colors: {
  custom: {
    50: '#745fa9',
    500: '#312284',
    950: '#000000',
  },
}
SCSS
$custom: #312284;
$custom-light: #745fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#312284",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 249.184,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34166,
    "c": 0.15438,
    "h": 281.4
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#312284
secondary
#A5B54D
accent
#E246CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312284

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

Preview Lab → · Contrast checker → · Palette generator →

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