#312388#312388

#312388 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.158 H 280.5°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#312388
RGBrgb(49, 35, 136)
HSLhsl(248, 59%, 34%)
HSVhsv(248, 74%, 53%)
CMYKcmyk(64%, 74.3%, 0%, 46.7%)
CIE-LABlab(22.42, 36.87, -54.00)
CIE-LCHlch(22.42, 65.39, 304.33°)
OKLaboklab(34.72% 0.0289 -0.1558)
OKLCHoklch(34.72% 0.158 280.5)
XYZxyz(6.3102, 3.6321, 23.6563)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312388 #7A8823
analogous
#234788 #312388 #632388
triadic
#312388 #883123 #238831
tetradic
#312388 #882347 #7A8823 #238863
square
#312388 #882347 #7A8823 #238863
split-complementary
#312388 #886323 #478823
monochromatic
#0E0A27 #1F1657 #312388 #4330B9 #6453D3

Accessibility & contrast

On white

12.16
#312388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#312388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312388
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312388#FFFFFF#000000##FFFFFF
##3123881.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #312388;
/* rgb */ color: rgb(49, 35, 136);
/* oklch */ color: oklch(34.7% 0.158 280.5);
Tailwind
colors: {
  custom: {
    50: '#7560ac',
    500: '#312388',
    950: '#000000',
  },
}
SCSS
$custom: #312388;
$custom-light: #7560ac;
$custom-dark: #000000;
JSON
{
  "hex": "#312388",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 248.317,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34718,
    "c": 0.15843,
    "h": 280.5
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#312388
secondary
#A8B750
accent
#E246CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312388

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

Preview Lab → · Contrast checker → · Palette generator →

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