#312C97#312C97

#312C97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.168 H 276.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#312C97
RGBrgb(49, 44, 151)
HSLhsl(243, 55%, 38%)
HSVhsv(243, 71%, 59%)
CMYKcmyk(67.5%, 70.9%, 0%, 40.8%)
CIE-LABlab(25.83, 36.54, -57.69)
CIE-LCHlch(25.83, 68.29, 302.35°)
OKLaboklab(37.6% 0.0196 -0.1666)
OKLCHoklch(37.6% 0.168 276.7)
XYZxyz(7.7514, 4.6880, 29.7685)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C97 #92972C
analogous
#2C5C97 #312C97 #662C97
triadic
#312C97 #97312C #2C9731
tetradic
#312C97 #972C5C #92972C #2C9766
square
#312C97 #972C5C #92972C #2C9766
split-complementary
#312C97 #97662C #5C972C
monochromatic
#121038 #221E68 #312C97 #413AC6 #6F6AD4

Accessibility & contrast

On white

10.84
#312C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#312C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C97
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C97#FFFFFF#000000##FFFFFF
##312C971.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #312c97;
/* rgb */ color: rgb(49, 44, 151);
/* oklch */ color: oklch(37.6% 0.168 276.7);
Tailwind
colors: {
  custom: {
    50: '#7766b7',
    500: '#312c97',
    950: '#000000',
  },
}
SCSS
$custom: #312c97;
$custom-light: #7766b7;
$custom-dark: #000000;
JSON
{
  "hex": "#312c97",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 242.804,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37603,
    "c": 0.16773,
    "h": 276.7
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#312C97
secondary
#B6BA65
accent
#DE4AD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312C97

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

Preview Lab → · Contrast checker → · Palette generator →

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