#312285#312285

#312285 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.156 H 281.2°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#312285
RGBrgb(49, 34, 133)
HSLhsl(249, 59%, 33%)
HSVhsv(249, 74%, 52%)
CMYKcmyk(63.2%, 74.4%, 0%, 47.8%)
CIE-LABlab(21.91, 36.47, -52.95)
CIE-LCHlch(21.91, 64.30, 304.56°)
OKLaboklab(34.27% 0.0303 -0.1527)
OKLCHoklch(34.27% 0.156 281.2)
XYZxyz(6.0710, 3.4900, 22.5395)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312285 #768522
analogous
#224485 #312285 #622285
triadic
#312285 #853122 #228531
tetradic
#312285 #852244 #768522 #228562
square
#312285 #852244 #768522 #228562
split-complementary
#312285 #856222 #448522
monochromatic
#0D0924 #1F1654 #312285 #432EB6 #634FD2

Accessibility & contrast

On white

12.37
#312285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#312285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312285
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312285#FFFFFF#000000##FFFFFF
##3122851.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312285;
/* rgb */ color: rgb(49, 34, 133);
/* oklch */ color: oklch(34.3% 0.156 281.2);
Tailwind
colors: {
  custom: {
    50: '#745fa9',
    500: '#312285',
    950: '#000000',
  },
}
SCSS
$custom: #312285;
$custom-light: #745fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#312285",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 249.091,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34267,
    "c": 0.15568,
    "h": 281.2
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#312285
secondary
#A6B64D
accent
#E245CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312285

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

Preview Lab → · Contrast checker → · Palette generator →

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