#312DCC#312DCC

#312DCC is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.3% C 0.231 H 272.2°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#312DCC
RGBrgb(49, 45, 204)
HSLhsl(242, 64%, 49%)
HSVhsv(242, 78%, 80%)
CMYKcmyk(76%, 77.9%, 0%, 20%)
CIE-LABlab(31.55, 53.32, -79.91)
CIE-LCHlch(31.55, 96.07, 303.71°)
OKLaboklab(43.3% 0.0089 -0.2313)
OKLCHoklch(43.3% 0.231 272.2)
XYZxyz(13.1004, 6.8880, 57.7541)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DCC #C8CC2D
analogous
#2D79CC #312DCC #812DCC
triadic
#312DCC #CC312D #2DCC31
tetradic
#312DCC #CC2D79 #C8CC2D #2DCC81
square
#312DCC #CC2D79 #C8CC2D #2DCC81
split-complementary
#312DCC #CC812D #79CC2D
monochromatic
#191768 #25229A #312DCC #5F5BDB #908DE6

Accessibility & contrast

On white

8.83
#312DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#312DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DCC
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DCC#FFFFFF#000000##FFFFFF
##312DCC1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052D0
Deuteranopia (green-blind)
#0042C9
Tritanopia (blue-blind)
#005E7C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #312dcc;
/* rgb */ color: rgb(49, 45, 204);
/* oklch */ color: oklch(43.3% 0.231 272.2);
Tailwind
colors: {
  custom: {
    50: '#8369dd',
    500: '#312dcc',
    950: '#000000',
  },
}
SCSS
$custom: #312dcc;
$custom-light: #8369dd;
$custom-dark: #000000;
JSON
{
  "hex": "#312dcc",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 241.509,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43302,
    "c": 0.23146,
    "h": 272.2
  },
  "luminance": 0.06889
}

Semantic roles & 50–950 ramp

primary
#312DCC
secondary
#CED085
accent
#E741E3
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #312DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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