#312E8F#312E8F

#312E8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.155 H 277.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#312E8F
RGBrgb(49, 46, 143)
HSLhsl(242, 51%, 37%)
HSVhsv(242, 68%, 56%)
CMYKcmyk(65.7%, 67.8%, 0%, 43.9%)
CIE-LABlab(25.53, 32.54, -53.24)
CIE-LCHlch(25.53, 62.40, 301.43°)
OKLaboklab(37.16% 0.0192 -0.1536)
OKLCHoklch(37.16% 0.155 277.1)
XYZxyz(7.1999, 4.5895, 26.4877)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E8F #8C8F2E
analogous
#2E5B8F #312E8F #622E8F
triadic
#312E8F #8F312E #2E8F31
tetradic
#312E8F #8F2E5B #8C8F2E #2E8F62
square
#312E8F #8F2E5B #8C8F2E #2E8F62
split-complementary
#312E8F #8F622E #5B8F2E
monochromatic
#111032 #211F61 #312E8F #413DBD #6C69CF

Accessibility & contrast

On white

10.95
#312E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#312E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E8F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E8F#FFFFFF#000000##FFFFFF
##312E8F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312e8f;
/* rgb */ color: rgb(49, 46, 143);
/* oklch */ color: oklch(37.2% 0.155 277.1);
Tailwind
colors: {
  custom: {
    50: '#7567b1',
    500: '#312e8f',
    950: '#000000',
  },
}
SCSS
$custom: #312e8f;
$custom-light: #7567b1;
$custom-dark: #000000;
JSON
{
  "hex": "#312e8f",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 241.856,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3716,
    "c": 0.15475,
    "h": 277.1
  },
  "luminance": 0.0459
}

Semantic roles & 50–950 ramp

primary
#312E8F
secondary
#B3B663
accent
#DB4DD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #312E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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