#312A8D#312A8D

#312A8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.157 H 278.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#312A8D
RGBrgb(49, 42, 141)
HSLhsl(244, 54%, 36%)
HSVhsv(244, 70%, 55%)
CMYKcmyk(65.2%, 70.2%, 0%, 44.7%)
CIE-LABlab(24.42, 34.36, -53.82)
CIE-LCHlch(24.42, 63.85, 302.55°)
OKLaboklab(36.3% 0.0227 -0.1553)
OKLCHoklch(36.3% 0.157 278.3)
XYZxyz(6.9008, 4.2314, 25.6472)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312A8D #868D2A
analogous
#2A548D #312A8D #622A8D
triadic
#312A8D #8D312A #2A8D31
tetradic
#312A8D #8D2A54 #868D2A #2A8D62
square
#312A8D #8D2A54 #868D2A #2A8D62
split-complementary
#312A8D #8D622A #548D2A
monochromatic
#100E2F #211C5E #312A8D #4138BC #6961D0

Accessibility & contrast

On white

11.37
#312A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#312A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312A8D
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312A8D#FFFFFF#000000##FFFFFF
##312A8D1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312a8d;
/* rgb */ color: rgb(49, 42, 141);
/* oklch */ color: oklch(36.3% 0.157 278.3);
Tailwind
colors: {
  custom: {
    50: '#7564af',
    500: '#312a8d',
    950: '#000000',
  },
}
SCSS
$custom: #312a8d;
$custom-light: #7564af;
$custom-dark: #000000;
JSON
{
  "hex": "#312a8d",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 244.242,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36302,
    "c": 0.1569,
    "h": 278.3
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#312A8D
secondary
#B0B65D
accent
#DD4AD3
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #312A8D

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

Preview Lab → · Contrast checker → · Palette generator →

#312A8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva