#312D9E#312D9E

#312D9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.176 H 275.8°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#312D9E
RGBrgb(49, 45, 158)
HSLhsl(242, 56%, 40%)
HSVhsv(242, 72%, 62%)
CMYKcmyk(69%, 71.5%, 0%, 38%)
CIE-LABlab(26.73, 38.32, -60.49)
CIE-LCHlch(26.73, 71.60, 302.35°)
OKLaboklab(38.46% 0.0178 -0.1748)
OKLCHoklch(38.46% 0.176 275.8)
XYZxyz(8.3745, 4.9976, 32.8644)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D9E #9A9E2D
analogous
#2D619E #312D9E #6A2D9E
triadic
#312D9E #9E312D #2D9E31
tetradic
#312D9E #9E2D61 #9A9E2D #2D9E6A
square
#312D9E #9E2D61 #9A9E2D #2D9E6A
split-complementary
#312D9E #9E6A2D #619E2D
monochromatic
#13123F #221F6E #312D9E #4540C9 #736FD6

Accessibility & contrast

On white

10.50
#312D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#312D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D9E
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D9E#FFFFFF#000000##FFFFFF
##312D9E1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #312d9e;
/* rgb */ color: rgb(49, 45, 158);
/* oklch */ color: oklch(38.5% 0.176 275.8);
Tailwind
colors: {
  custom: {
    50: '#7967bc',
    500: '#312d9e',
    950: '#000000',
  },
}
SCSS
$custom: #312d9e;
$custom-light: #7967bc;
$custom-dark: #000000;
JSON
{
  "hex": "#312d9e",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 242.124,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38456,
    "c": 0.17566,
    "h": 275.8
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#312D9E
secondary
#BABD69
accent
#DF49DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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