#312BD2#312BD2

#312BD2 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.7% C 0.240 H 272.0°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#312BD2
RGBrgb(49, 43, 210)
HSLhsl(242, 66%, 50%)
HSVhsv(242, 80%, 82%)
CMYKcmyk(76.7%, 79.5%, 0%, 17.6%)
CIE-LABlab(31.88, 56.16, -82.85)
CIE-LCHlch(31.88, 100.09, 304.13°)
OKLaboklab(43.73% 0.0083 -0.2398)
OKLCHoklch(43.73% 0.24 272)
XYZxyz(13.7594, 7.0324, 61.5925)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BD2 #CCD22B
analogous
#2B78D2 #312BD2 #852BD2
triadic
#312BD2 #D2312B #2BD231
tetradic
#312BD2 #D22B78 #CCD22B #2BD285
square
#312BD2 #D22B78 #CCD22B #2BD285
split-complementary
#312BD2 #D2852B #78D22B
monochromatic
#19166C #25219F #312BD2 #615CDE #928FE8

Accessibility & contrast

On white

8.73
#312BD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#312BD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BD2
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BD2#FFFFFF#000000##FFFFFF
##312BD21.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053D7
Deuteranopia (green-blind)
#0043CF
Tritanopia (blue-blind)
#005F7F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #312bd2;
/* rgb */ color: rgb(49, 43, 210);
/* oklch */ color: oklch(43.7% 0.240 272.0);
Tailwind
colors: {
  custom: {
    50: '#8569e1',
    500: '#312bd2',
    950: '#000000',
  },
}
SCSS
$custom: #312bd2;
$custom-light: #8569e1;
$custom-dark: #000000;
JSON
{
  "hex": "#312bd2",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 210
  },
  "hsl": {
    "h": 242.156,
    "s": 66.008,
    "l": 49.608
  },
  "oklch": {
    "l": 0.43727,
    "c": 0.23993,
    "h": 272
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#312BD2
secondary
#D0D386
accent
#E93FE3
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0616
muted
#7E7A84

Preview Lab

Preview with #312BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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