#312DC0#312DC0

#312DC0 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.0% C 0.217 H 273.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#312DC0
RGBrgb(49, 45, 192)
HSLhsl(242, 62%, 46%)
HSVhsv(242, 77%, 75%)
CMYKcmyk(74.5%, 76.6%, 0%, 24.7%)
CIE-LABlab(30.24, 49.53, -75.05)
CIE-LCHlch(30.24, 89.92, 303.42°)
OKLaboklab(42% 0.0114 -0.2172)
OKLCHoklch(42% 0.217 273)
XYZxyz(11.7163, 6.3343, 50.4641)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DC0 #BCC02D
analogous
#2D73C0 #312DC0 #7B2DC0
triadic
#312DC0 #C0312D #2DC031
tetradic
#312DC0 #C02D73 #BCC02D #2DC07B
square
#312DC0 #C02D73 #BCC02D #2DC07B
split-complementary
#312DC0 #C07B2D #73C02D
monochromatic
#18165D #24218E #312DC0 #5753D7 #8885E2

Accessibility & contrast

On white

9.26
#312DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#312DC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DC0
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DC0#FFFFFF#000000##FFFFFF
##312DC01.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC4
Deuteranopia (green-blind)
#0040BD
Tritanopia (blue-blind)
#005975
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312dc0;
/* rgb */ color: rgb(49, 45, 192);
/* oklch */ color: oklch(42.0% 0.217 273.0);
Tailwind
colors: {
  custom: {
    50: '#8069d4',
    500: '#312dc0',
    950: '#000000',
  },
}
SCSS
$custom: #312dc0;
$custom-light: #8069d4;
$custom-dark: #000000;
JSON
{
  "hex": "#312dc0",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 241.633,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.41998,
    "c": 0.21748,
    "h": 273
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#312DC0
secondary
#CACC7D
accent
#E543E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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