#312BB4#312BB4

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

Color values

HEX#312BB4
RGBrgb(49, 43, 180)
HSLhsl(243, 61%, 44%)
HSVhsv(243, 76%, 71%)
CMYKcmyk(72.8%, 76.1%, 0%, 29.4%)
CIE-LABlab(28.58, 46.74, -70.69)
CIE-LCHlch(28.58, 84.75, 303.47°)
OKLaboklab(40.45% 0.0148 -0.2045)
OKLCHoklch(40.45% 0.205 274.1)
XYZxyz(10.3660, 5.6750, 43.7202)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BB4 #AEB42B
analogous
#2B69B4 #312BB4 #752BB4
triadic
#312BB4 #B4312B #2BB431
tetradic
#312BB4 #B42B69 #AEB42B #2BB475
square
#312BB4 #B42B69 #AEB42B #2BB475
split-complementary
#312BB4 #B4752B #69B42B
monochromatic
#161351 #241F83 #312BB4 #4F49D3 #7F7ADF

Accessibility & contrast

On white

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

On black

2.14
#312BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##312BB4#FFFFFF#000000##FFFFFF
##312BB41.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003DB2
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #312bb4;
/* rgb */ color: rgb(49, 43, 180);
/* oklch */ color: oklch(40.4% 0.205 274.1);
Tailwind
colors: {
  custom: {
    50: '#7e67cc',
    500: '#312bb4',
    950: '#000000',
  },
}
SCSS
$custom: #312bb4;
$custom-light: #7e67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#312bb4",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 242.628,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40446,
    "c": 0.20502,
    "h": 274.1
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#312BB4
secondary
#C4C773
accent
#E543DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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