#312B8A#312B8A

#312B8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.152 H 278.4°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#312B8A
RGBrgb(49, 43, 138)
HSLhsl(244, 52%, 35%)
HSVhsv(244, 69%, 54%)
CMYKcmyk(64.5%, 68.8%, 0%, 45.9%)
CIE-LABlab(24.37, 32.70, -52.04)
CIE-LCHlch(24.37, 61.46, 302.15°)
OKLaboklab(36.18% 0.0223 -0.15)
OKLCHoklch(36.18% 0.152 278.4)
XYZxyz(6.7165, 4.2152, 24.4995)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B8A #848A2B
analogous
#2B558A #312B8A #602B8A
triadic
#312B8A #8A312B #2B8A31
tetradic
#312B8A #8A2B55 #848A2B #2B8A60
square
#312B8A #8A2B55 #848A2B #2B8A60
split-complementary
#312B8A #8A602B #558A2B
monochromatic
#100E2D #201C5B #312B8A #423AB9 #6861CE

Accessibility & contrast

On white

11.39
#312B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#312B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312B8A
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B8A#FFFFFF#000000##FFFFFF
##312B8A1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312b8a;
/* rgb */ color: rgb(49, 43, 138);
/* oklch */ color: oklch(36.2% 0.152 278.4);
Tailwind
colors: {
  custom: {
    50: '#7465ad',
    500: '#312b8a',
    950: '#000000',
  },
}
SCSS
$custom: #312b8a;
$custom-light: #7465ad;
$custom-dark: #000000;
JSON
{
  "hex": "#312b8a",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 243.789,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36178,
    "c": 0.15168,
    "h": 278.4
  },
  "luminance": 0.04216
}

Semantic roles & 50–950 ramp

primary
#312B8A
secondary
#AEB45D
accent
#DC4CD3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #312B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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