#312E71#312E71

#312E71 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.112 H 280.8°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#312E71
RGBrgb(49, 46, 113)
HSLhsl(243, 42%, 31%)
HSVhsv(243, 59%, 44%)
CMYKcmyk(56.6%, 59.3%, 0%, 55.7%)
CIE-LABlab(23.00, 22.01, -38.48)
CIE-LCHlch(23.00, 44.33, 299.77°)
OKLaboklab(34.51% 0.021 -0.1102)
OKLCHoklch(34.51% 0.112 280.8)
XYZxyz(5.2233, 3.7989, 16.0776)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E71 #6E712E
analogous
#2E4C71 #312E71 #522E71
triadic
#312E71 #71312E #2E7131
tetradic
#312E71 #712E4C #6E712E #2E7152
square
#312E71 #712E4C #6E712E #2E7152
split-complementary
#312E71 #71522E #4C712E
monochromatic
#0B0B1A #1E1C46 #312E71 #44409C #615DBD

Accessibility & contrast

On white

11.93
#312E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#312E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E71
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E71#FFFFFF#000000##FFFFFF
##312E711.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#143D4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312e71;
/* rgb */ color: rgb(49, 46, 113);
/* oklch */ color: oklch(34.5% 0.112 280.8);
Tailwind
colors: {
  custom: {
    50: '#6f669a',
    500: '#312e71',
    950: '#000000',
  },
}
SCSS
$custom: #312e71;
$custom-light: #6f669a;
$custom-dark: #000000;
JSON
{
  "hex": "#312e71",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 242.687,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34508,
    "c": 0.11215,
    "h": 280.8
  },
  "luminance": 0.03799
}

Semantic roles & 50–950 ramp

primary
#312E71
secondary
#9FA258
accent
#D256CC
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #312E71

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

Preview Lab → · Contrast checker → · Palette generator →

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