#312CB2#312CB2

#312CB2 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.4% C 0.202 H 274.2°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#312CB2
RGBrgb(49, 44, 178)
HSLhsl(242, 60%, 44%)
HSVhsv(242, 75%, 70%)
CMYKcmyk(72.5%, 75.3%, 0%, 30.2%)
CIE-LABlab(28.56, 45.55, -69.53)
CIE-LCHlch(28.56, 83.12, 303.23°)
OKLaboklab(40.37% 0.0147 -0.2011)
OKLCHoklch(40.37% 0.202 274.2)
XYZxyz(10.2005, 5.6677, 42.6672)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CB2 #ADB22C
analogous
#2C6AB2 #312CB2 #742CB2
triadic
#312CB2 #B2312C #2CB231
tetradic
#312CB2 #B22C6A #ADB22C #2CB274
square
#312CB2 #B22C6A #ADB22C #2CB274
split-complementary
#312CB2 #B2742C #6AB22C
monochromatic
#161450 #232081 #312CB2 #4E49D2 #7E7ADE

Accessibility & contrast

On white

9.84
#312CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#312CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CB2
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CB2#FFFFFF#000000##FFFFFF
##312CB21.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312cb2;
/* rgb */ color: rgb(49, 44, 178);
/* oklch */ color: oklch(40.4% 0.202 274.2);
Tailwind
colors: {
  custom: {
    50: '#7d67ca',
    500: '#312cb2',
    950: '#000000',
  },
}
SCSS
$custom: #312cb2;
$custom-light: #7d67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312cb2",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 242.239,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40369,
    "c": 0.20166,
    "h": 274.2
  },
  "luminance": 0.05669
}

Semantic roles & 50–950 ramp

primary
#312CB2
secondary
#C3C673
accent
#E444DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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