#312B8D#312B8D

#312B8D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.156 H 278.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#312B8D
RGBrgb(49, 43, 141)
HSLhsl(244, 53%, 36%)
HSVhsv(244, 70%, 55%)
CMYKcmyk(65.2%, 69.5%, 0%, 44.7%)
CIE-LABlab(24.65, 33.73, -53.45)
CIE-LCHlch(24.65, 63.21, 302.26°)
OKLaboklab(36.46% 0.0219 -0.1542)
OKLCHoklch(36.46% 0.156 278.1)
XYZxyz(6.9367, 4.3033, 25.6592)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B8D #878D2B
analogous
#2B568D #312B8D #622B8D
triadic
#312B8D #8D312B #2B8D31
tetradic
#312B8D #8D2B56 #878D2B #2B8D62
square
#312B8D #8D2B56 #878D2B #2B8D62
split-complementary
#312B8D #8D622B #568D2B
monochromatic
#100E2F #211D5E #312B8D #4139BC #6A63CF

Accessibility & contrast

On white

11.29
#312B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#312B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312B8D
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B8D#FFFFFF#000000##FFFFFF
##312B8D1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312b8d;
/* rgb */ color: rgb(49, 43, 141);
/* oklch */ color: oklch(36.5% 0.156 278.1);
Tailwind
colors: {
  custom: {
    50: '#7565af',
    500: '#312b8d',
    950: '#000000',
  },
}
SCSS
$custom: #312b8d;
$custom-light: #7565af;
$custom-dark: #000000;
JSON
{
  "hex": "#312b8d",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 243.673,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36465,
    "c": 0.15571,
    "h": 278.1
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#312B8D
secondary
#B0B65E
accent
#DD4BD4
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #312B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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