#312B8B#312B8B

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

Color values

HEX#312B8B
RGBrgb(49, 43, 139)
HSLhsl(244, 53%, 36%)
HSVhsv(244, 69%, 55%)
CMYKcmyk(64.7%, 69.1%, 0%, 45.5%)
CIE-LABlab(24.46, 33.05, -52.51)
CIE-LCHlch(24.46, 62.05, 302.18°)
OKLaboklab(36.27% 0.0221 -0.1514)
OKLCHoklch(36.27% 0.153 278.3)
XYZxyz(6.7892, 4.2443, 24.8825)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B8B #858B2B
analogous
#2B558B #312B8B #612B8B
triadic
#312B8B #8B312B #2B8B31
tetradic
#312B8B #8B2B55 #858B2B #2B8B61
square
#312B8B #8B2B55 #858B2B #2B8B61
split-complementary
#312B8B #8B612B #558B2B
monochromatic
#100E2E #211D5C #312B8B #4139BA #6962CE

Accessibility & contrast

On white

11.36
#312B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312B8B
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B8B#FFFFFF#000000##FFFFFF
##312B8B1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312b8b;
/* rgb */ color: rgb(49, 43, 139);
/* oklch */ color: oklch(36.3% 0.153 278.3);
Tailwind
colors: {
  custom: {
    50: '#7565ae',
    500: '#312b8b',
    950: '#000000',
  },
}
SCSS
$custom: #312b8b;
$custom-light: #7565ae;
$custom-dark: #000000;
JSON
{
  "hex": "#312b8b",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 243.75,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36273,
    "c": 0.15303,
    "h": 278.3
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#312B8B
secondary
#AFB55D
accent
#DC4CD3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #312B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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