#312CB8#312CB8

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

Color values

HEX#312CB8
RGBrgb(49, 44, 184)
HSLhsl(242, 61%, 45%)
HSVhsv(242, 76%, 72%)
CMYKcmyk(73.4%, 76.1%, 0%, 27.8%)
CIE-LABlab(29.19, 47.49, -72.05)
CIE-LCHlch(29.19, 86.30, 303.39°)
OKLaboklab(41.01% 0.0135 -0.2084)
OKLCHoklch(41.01% 0.209 273.7)
XYZxyz(10.8162, 5.9139, 45.9096)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CB8 #B3B82C
analogous
#2C6DB8 #312CB8 #772CB8
triadic
#312CB8 #B8312C #2CB831
tetradic
#312CB8 #B82C6D #B3B82C #2CB877
square
#312CB8 #B82C6D #B3B82C #2CB877
split-complementary
#312CB8 #B8772C #6DB82C
monochromatic
#171455 #242087 #312CB8 #524DD4 #827EE0

Accessibility & contrast

On white

9.62
#312CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312CB8
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CB8#FFFFFF#000000##FFFFFF
##312CB81.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBC
Deuteranopia (green-blind)
#003EB6
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312cb8;
/* rgb */ color: rgb(49, 44, 184);
/* oklch */ color: oklch(41.0% 0.209 273.7);
Tailwind
colors: {
  custom: {
    50: '#7f68cf',
    500: '#312cb8',
    950: '#000000',
  },
}
SCSS
$custom: #312cb8;
$custom-light: #7f68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#312cb8",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 242.143,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41007,
    "c": 0.20888,
    "h": 273.7
  },
  "luminance": 0.05915
}

Semantic roles & 50–950 ramp

primary
#312CB8
secondary
#C6C977
accent
#E543DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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