#312384#312384

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

Color values

HEX#312384
RGBrgb(49, 35, 132)
HSLhsl(249, 58%, 33%)
HSVhsv(249, 73%, 52%)
CMYKcmyk(62.9%, 73.5%, 0%, 48.2%)
CIE-LABlab(22.02, 35.56, -52.14)
CIE-LCHlch(22.02, 63.11, 304.29°)
OKLaboklab(34.32% 0.0298 -0.1503)
OKLCHoklch(34.32% 0.153 281.2)
XYZxyz(6.0312, 3.5205, 22.1870)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312384 #768423
analogous
#234584 #312384 #622384
triadic
#312384 #843123 #238431
tetradic
#312384 #842345 #768423 #238462
square
#312384 #842345 #768423 #238462
split-complementary
#312384 #846223 #458423
monochromatic
#0D0923 #1F1654 #312384 #4330B4 #6351D1

Accessibility & contrast

On white

12.32
#312384 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##312384#FFFFFF#000000##FFFFFF
##3123841.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)
#003887
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312384;
/* rgb */ color: rgb(49, 35, 132);
/* oklch */ color: oklch(34.3% 0.153 281.2);
Tailwind
colors: {
  custom: {
    50: '#745fa9',
    500: '#312384',
    950: '#000000',
  },
}
SCSS
$custom: #312384;
$custom-light: #745fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#312384",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 132
  },
  "hsl": {
    "h": 248.66,
    "s": 58.084,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34315,
    "c": 0.15324,
    "h": 281.2
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#312384
secondary
#A6B44E
accent
#E146CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312384

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

Preview Lab → · Contrast checker → · Palette generator →

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