#312DC2#312DC2

#312DC2 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.2% C 0.220 H 272.9°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#312DC2
RGBrgb(49, 45, 194)
HSLhsl(242, 62%, 47%)
HSVhsv(242, 77%, 76%)
CMYKcmyk(74.7%, 76.8%, 0%, 23.9%)
CIE-LABlab(30.46, 50.17, -75.87)
CIE-LCHlch(30.46, 90.96, 303.47°)
OKLaboklab(42.21% 0.011 -0.2196)
OKLCHoklch(42.21% 0.22 272.9)
XYZxyz(11.9394, 6.4235, 51.6391)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DC2 #BEC22D
analogous
#2D73C2 #312DC2 #7C2DC2
triadic
#312DC2 #C2312D #2DC231
tetradic
#312DC2 #C22D73 #BEC22D #2DC27C
square
#312DC2 #C22D73 #BEC22D #2DC27C
split-complementary
#312DC2 #C27C2D #73C22D
monochromatic
#18165F #242190 #312DC2 #5855D7 #8986E3

Accessibility & contrast

On white

9.19
#312DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#312DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DC2
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DC2#FFFFFF#000000##FFFFFF
##312DC21.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC6
Deuteranopia (green-blind)
#0040BF
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #312dc2;
/* rgb */ color: rgb(49, 45, 194);
/* oklch */ color: oklch(42.2% 0.220 272.9);
Tailwind
colors: {
  custom: {
    50: '#8169d6',
    500: '#312dc2',
    950: '#000000',
  },
}
SCSS
$custom: #312dc2;
$custom-light: #8169d6;
$custom-dark: #000000;
JSON
{
  "hex": "#312dc2",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 241.611,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42213,
    "c": 0.21984,
    "h": 272.9
  },
  "luminance": 0.06425
}

Semantic roles & 50–950 ramp

primary
#312DC2
secondary
#CACD7E
accent
#E542E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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