#312FA9#312FA9

#312FA9 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.187 H 274.5°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#312FA9
RGBrgb(49, 47, 169)
HSLhsl(241, 56%, 42%)
HSVhsv(241, 72%, 66%)
CMYKcmyk(71%, 72.2%, 0%, 33.7%)
CIE-LABlab(28.25, 40.85, -64.65)
CIE-LCHlch(28.25, 76.47, 302.29°)
OKLaboklab(39.87% 0.0147 -0.1869)
OKLCHoklch(39.87% 0.187 274.5)
XYZxyz(9.4422, 5.5497, 38.1020)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FA9 #A7A92F
analogous
#2F6AA9 #312FA9 #6E2FA9
triadic
#312FA9 #A9312F #2FA931
tetradic
#312FA9 #A92F6A #A7A92F #2FA96E
square
#312FA9 #A92F6A #A7A92F #2FA96E
split-complementary
#312FA9 #A96E2F #6AA92F
monochromatic
#151449 #232279 #312FA9 #4B49CC #7A79DA

Accessibility & contrast

On white

9.95
#312FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#312FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FA9
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FA9#FFFFFF#000000##FFFFFF
##312FA91.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003DA7
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312fa9;
/* rgb */ color: rgb(49, 47, 169);
/* oklch */ color: oklch(39.9% 0.187 274.5);
Tailwind
colors: {
  custom: {
    50: '#7b69c4',
    500: '#312fa9',
    950: '#000000',
  },
}
SCSS
$custom: #312fa9;
$custom-light: #7b69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#312fa9",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 240.984,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39872,
    "c": 0.18749,
    "h": 274.5
  },
  "luminance": 0.05551
}

Semantic roles & 50–950 ramp

primary
#312FA9
secondary
#C1C272
accent
#E048DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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