#312AB6#312AB6

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

Color values

HEX#312AB6
RGBrgb(49, 42, 182)
HSLhsl(243, 63%, 44%)
HSVhsv(243, 77%, 71%)
CMYKcmyk(73.1%, 76.9%, 0%, 28.6%)
CIE-LABlab(28.60, 47.92, -71.84)
CIE-LCHlch(28.60, 86.36, 303.71°)
OKLaboklab(40.53% 0.0148 -0.2078)
OKLCHoklch(40.53% 0.208 274.1)
XYZxyz(10.5353, 5.6852, 44.7890)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AB6 #AFB62A
analogous
#2A69B6 #312AB6 #772AB6
triadic
#312AB6 #B6312A #2AB631
tetradic
#312AB6 #B62A69 #AFB62A #2AB677
square
#312AB6 #B62A69 #AFB62A #2AB677
split-complementary
#312AB6 #B6772A #69B62A
monochromatic
#161353 #241F84 #312AB6 #4F48D5 #7F7AE0

Accessibility & contrast

On white

9.83
#312AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312AB6
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AB6#FFFFFF#000000##FFFFFF
##312AB61.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312ab6;
/* rgb */ color: rgb(49, 42, 182);
/* oklch */ color: oklch(40.5% 0.208 274.1);
Tailwind
colors: {
  custom: {
    50: '#7e66cd',
    500: '#312ab6',
    950: '#000000',
  },
}
SCSS
$custom: #312ab6;
$custom-light: #7e66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#312ab6",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 243,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40528,
    "c": 0.20833,
    "h": 274.1
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#312AB6
secondary
#C4C873
accent
#E642DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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