#312DC9#312DC9

#312DC9 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 43.0% C 0.228 H 272.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#312DC9
RGBrgb(49, 45, 201)
HSLhsl(242, 63%, 48%)
HSVhsv(242, 78%, 79%)
CMYKcmyk(75.6%, 77.6%, 0%, 21.2%)
CIE-LABlab(31.22, 52.38, -78.71)
CIE-LCHlch(31.22, 94.54, 303.64°)
OKLaboklab(42.97% 0.0096 -0.2278)
OKLCHoklch(42.97% 0.228 272.4)
XYZxyz(12.7441, 6.7454, 55.8774)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DC9 #C5C92D
analogous
#2D77C9 #312DC9 #7F2DC9
triadic
#312DC9 #C9312D #2DC931
tetradic
#312DC9 #C92D77 #C5C92D #2DC97F
square
#312DC9 #C92D77 #C5C92D #2DC97F
split-complementary
#312DC9 #C97F2D #77C92D
monochromatic
#191765 #252297 #312DC9 #5D59DA #8E8BE5

Accessibility & contrast

On white

8.94
#312DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#312DC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DC9
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DC9#FFFFFF#000000##FFFFFF
##312DC91.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CD
Deuteranopia (green-blind)
#0042C6
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #312dc9;
/* rgb */ color: rgb(49, 45, 201);
/* oklch */ color: oklch(43.0% 0.228 272.4);
Tailwind
colors: {
  custom: {
    50: '#8369db',
    500: '#312dc9',
    950: '#000000',
  },
}
SCSS
$custom: #312dc9;
$custom-light: #8369db;
$custom-dark: #000000;
JSON
{
  "hex": "#312dc9",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 241.538,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.42974,
    "c": 0.228,
    "h": 272.4
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

primary
#312DC9
secondary
#CDCF83
accent
#E641E2
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #312DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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