#312BB2#312BB2

#312BB2 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.2% C 0.203 H 274.3°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#312BB2
RGBrgb(49, 43, 178)
HSLhsl(243, 61%, 43%)
HSVhsv(243, 76%, 70%)
CMYKcmyk(72.5%, 75.8%, 0%, 30.2%)
CIE-LABlab(28.36, 46.10, -69.85)
CIE-LCHlch(28.36, 83.69, 303.42°)
OKLaboklab(40.23% 0.0152 -0.202)
OKLCHoklch(40.23% 0.203 274.3)
XYZxyz(10.1637, 5.5941, 42.6550)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BB2 #ACB22B
analogous
#2B68B2 #312BB2 #742BB2
triadic
#312BB2 #B2312B #2BB231
tetradic
#312BB2 #B22B68 #ACB22B #2BB274
square
#312BB2 #B22B68 #ACB22B #2BB274
split-complementary
#312BB2 #B2742B #68B22B
monochromatic
#16134F #231F81 #312BB2 #4E48D3 #7D79DF

Accessibility & contrast

On white

9.91
#312BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#312BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BB2
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BB2#FFFFFF#000000##FFFFFF
##312BB21.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.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: #312bb2;
/* rgb */ color: rgb(49, 43, 178);
/* oklch */ color: oklch(40.2% 0.203 274.3);
Tailwind
colors: {
  custom: {
    50: '#7d67ca',
    500: '#312bb2',
    950: '#000000',
  },
}
SCSS
$custom: #312bb2;
$custom-light: #7d67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312bb2",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 242.667,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40233,
    "c": 0.20261,
    "h": 274.3
  },
  "luminance": 0.05595
}

Semantic roles & 50–950 ramp

primary
#312BB2
secondary
#C3C772
accent
#E444DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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