#312B95#312B95

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

Color values

HEX#312B95
RGBrgb(49, 43, 149)
HSLhsl(243, 55%, 38%)
HSVhsv(243, 71%, 58%)
CMYKcmyk(67.1%, 71.1%, 0%, 41.6%)
CIE-LABlab(25.41, 36.47, -57.14)
CIE-LCHlch(25.41, 67.79, 302.55°)
OKLaboklab(37.25% 0.0206 -0.165)
OKLCHoklch(37.25% 0.166 277.1)
XYZxyz(7.5536, 4.5500, 28.9081)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B95 #8F952B
analogous
#2B5A95 #312B95 #662B95
triadic
#312B95 #95312B #2B9531
tetradic
#312B95 #952B5A #8F952B #2B9566
square
#312B95 #952B5A #8F952B #2B9566
split-complementary
#312B95 #95662B #5A952B
monochromatic
#121036 #211D66 #312B95 #4139C4 #6D67D3

Accessibility & contrast

On white

10.99
#312B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#312B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312B95
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B95#FFFFFF#000000##FFFFFF
##312B951.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312b95;
/* rgb */ color: rgb(49, 43, 149);
/* oklch */ color: oklch(37.2% 0.166 277.1);
Tailwind
colors: {
  custom: {
    50: '#7765b5',
    500: '#312b95',
    950: '#000000',
  },
}
SCSS
$custom: #312b95;
$custom-light: #7765b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312b95",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 243.396,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37247,
    "c": 0.16625,
    "h": 277.1
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#312B95
secondary
#B5BA62
accent
#DF49D6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312B95

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

Preview Lab → · Contrast checker → · Palette generator →

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