#312BB6#312BB6

#312BB6 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.7% C 0.207 H 274.0°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#312BB6
RGBrgb(49, 43, 182)
HSLhsl(243, 62%, 44%)
HSVhsv(243, 76%, 71%)
CMYKcmyk(73.1%, 76.4%, 0%, 28.6%)
CIE-LABlab(28.79, 47.39, -71.53)
CIE-LCHlch(28.79, 85.80, 303.52°)
OKLaboklab(40.66% 0.0143 -0.2069)
OKLCHoklch(40.66% 0.207 274)
XYZxyz(10.5712, 5.7571, 44.8010)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BB6 #B0B62B
analogous
#2B6BB6 #312BB6 #772BB6
triadic
#312BB6 #B6312B #2BB631
tetradic
#312BB6 #B62B6B #B0B62B #2BB677
square
#312BB6 #B62B6B #B0B62B #2BB677
split-complementary
#312BB6 #B6772B #6BB62B
monochromatic
#161453 #241F84 #312BB6 #504AD4 #807BE0

Accessibility & contrast

On white

9.76
#312BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#312BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BB6
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BB6#FFFFFF#000000##FFFFFF
##312BB61.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABA
Deuteranopia (green-blind)
#003DB4
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312bb6;
/* rgb */ color: rgb(49, 43, 182);
/* oklch */ color: oklch(40.7% 0.207 274.0);
Tailwind
colors: {
  custom: {
    50: '#7e67cd',
    500: '#312bb6',
    950: '#000000',
  },
}
SCSS
$custom: #312bb6;
$custom-light: #7e67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#312bb6",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 242.59,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4066,
    "c": 0.20742,
    "h": 274
  },
  "luminance": 0.05758
}

Semantic roles & 50–950 ramp

primary
#312BB6
secondary
#C5C875
accent
#E543DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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