#312185#312185

#312185 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.157 H 281.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#312185
RGBrgb(49, 33, 133)
HSLhsl(250, 60%, 33%)
HSVhsv(250, 75%, 52%)
CMYKcmyk(63.2%, 75.2%, 0%, 47.8%)
CIE-LABlab(21.70, 37.04, -53.29)
CIE-LCHlch(21.70, 64.90, 304.81°)
OKLaboklab(34.12% 0.0311 -0.1537)
OKLCHoklch(34.12% 0.157 281.4)
XYZxyz(6.0428, 3.4337, 22.5301)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312185 #758521
analogous
#214385 #312185 #632185
triadic
#312185 #853121 #218531
tetradic
#312185 #852143 #758521 #218563
square
#312185 #852143 #758521 #218563
split-complementary
#312185 #856321 #438521
monochromatic
#0D0923 #1F1554 #312185 #432DB6 #634DD3

Accessibility & contrast

On white

12.45
#312185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312185
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312185#FFFFFF#000000##FFFFFF
##3121851.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312185;
/* rgb */ color: rgb(49, 33, 133);
/* oklch */ color: oklch(34.1% 0.157 281.4);
Tailwind
colors: {
  custom: {
    50: '#745eaa',
    500: '#312185',
    950: '#000000',
  },
}
SCSS
$custom: #312185;
$custom-light: #745eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#312185",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 249.6,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34121,
    "c": 0.15679,
    "h": 281.4
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#312185
secondary
#A5B64C
accent
#E344CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312185

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

Preview Lab → · Contrast checker → · Palette generator →

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