#312ABB#312ABB

#312ABB is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.1% C 0.214 H 273.7°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#312ABB
RGBrgb(49, 42, 187)
HSLhsl(243, 63%, 45%)
HSVhsv(243, 78%, 73%)
CMYKcmyk(73.8%, 77.5%, 0%, 26.7%)
CIE-LABlab(29.15, 49.51, -73.91)
CIE-LCHlch(29.15, 88.96, 303.82°)
OKLaboklab(41.07% 0.0137 -0.2138)
OKLCHoklch(41.07% 0.214 273.7)
XYZxyz(11.0612, 5.8956, 47.5591)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312ABB #B4BB2A
analogous
#2A6BBB #312ABB #7A2ABB
triadic
#312ABB #BB312A #2ABB31
tetradic
#312ABB #BB2A6B #B4BB2A #2ABB7A
square
#312ABB #BB2A6B #B4BB2A #2ABB7A
split-complementary
#312ABB #BB7A2A #6BBB2A
monochromatic
#171457 #241F89 #312ABB #524CD7 #827DE2

Accessibility & contrast

On white

9.64
#312ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#312ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312ABB
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312ABB#FFFFFF#000000##FFFFFF
##312ABB1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBF
Deuteranopia (green-blind)
#003EB8
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312abb;
/* rgb */ color: rgb(49, 42, 187);
/* oklch */ color: oklch(41.1% 0.214 273.7);
Tailwind
colors: {
  custom: {
    50: '#8067d1',
    500: '#312abb',
    950: '#000000',
  },
}
SCSS
$custom: #312abb;
$custom-light: #8067d1;
$custom-dark: #000000;
JSON
{
  "hex": "#312abb",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 187
  },
  "hsl": {
    "h": 242.897,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4107,
    "c": 0.21426,
    "h": 273.7
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#312ABB
secondary
#C6CA76
accent
#E641DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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