#312E9F#312E9F

#312E9F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.176 H 275.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#312E9F
RGBrgb(49, 46, 159)
HSLhsl(242, 55%, 40%)
HSVhsv(242, 71%, 62%)
CMYKcmyk(69.2%, 71.1%, 0%, 37.6%)
CIE-LABlab(27.04, 38.06, -60.58)
CIE-LCHlch(27.04, 71.54, 302.14°)
OKLaboklab(38.71% 0.017 -0.175)
OKLCHoklch(38.71% 0.176 275.5)
XYZxyz(8.4996, 5.1094, 33.3325)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E9F #9C9F2E
analogous
#2E639F #312E9F #692E9F
triadic
#312E9F #9F312E #2E9F31
tetradic
#312E9F #9F2E63 #9C9F2E #2E9F69
square
#312E9F #9F2E63 #9C9F2E #2E9F69
split-complementary
#312E9F #9F692E #639F2E
monochromatic
#141340 #222070 #312E9F #4542C8 #7471D6

Accessibility & contrast

On white

10.39
#312E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#312E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E9F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E9F#FFFFFF#000000##FFFFFF
##312E9F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312e9f;
/* rgb */ color: rgb(49, 46, 159);
/* oklch */ color: oklch(38.7% 0.176 275.5);
Tailwind
colors: {
  custom: {
    50: '#7968bc',
    500: '#312e9f',
    950: '#000000',
  },
}
SCSS
$custom: #312e9f;
$custom-light: #7968bc;
$custom-dark: #000000;
JSON
{
  "hex": "#312e9f",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 241.593,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38713,
    "c": 0.17584,
    "h": 275.5
  },
  "luminance": 0.0511
}

Semantic roles & 50–950 ramp

primary
#312E9F
secondary
#BBBE6B
accent
#DE49DA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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