#312CCD#312CCD

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

Color values

HEX#312CCD
RGBrgb(49, 44, 205)
HSLhsl(242, 65%, 49%)
HSVhsv(242, 79%, 80%)
CMYKcmyk(76.1%, 78.5%, 0%, 19.6%)
CIE-LABlab(31.49, 54.13, -80.60)
CIE-LCHlch(31.49, 97.09, 303.89°)
OKLaboklab(43.29% 0.0091 -0.2333)
OKLCHoklch(43.29% 0.233 272.2)
XYZxyz(13.1830, 6.8607, 58.3752)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CCD #C8CD2C
analogous
#2C78CD #312CCD #822CCD
triadic
#312CCD #CD312C #2CCD31
tetradic
#312CCD #CD2C78 #C8CD2C #2CCD82
square
#312CCD #CD2C78 #C8CD2C #2CCD82
split-complementary
#312CCD #CD822C #78CD2C
monochromatic
#191668 #25219B #312CCD #5F5BDC #908DE7

Accessibility & contrast

On white

8.85
#312CCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#312CCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CCD
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CCD#FFFFFF#000000##FFFFFF
##312CCD1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312ccd;
/* rgb */ color: rgb(49, 44, 205);
/* oklch */ color: oklch(43.3% 0.233 272.2);
Tailwind
colors: {
  custom: {
    50: '#8469de',
    500: '#312ccd',
    950: '#000000',
  },
}
SCSS
$custom: #312ccd;
$custom-light: #8469de;
$custom-dark: #000000;
JSON
{
  "hex": "#312ccd",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 205
  },
  "hsl": {
    "h": 241.863,
    "s": 64.659,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4329,
    "c": 0.23345,
    "h": 272.2
  },
  "luminance": 0.06862
}

Semantic roles & 50–950 ramp

primary
#312CCD
secondary
#CED184
accent
#E840E2
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #312CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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