#312CB7#312CB7

#312CB7 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.9% C 0.208 H 273.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#312CB7
RGBrgb(49, 44, 183)
HSLhsl(242, 61%, 45%)
HSVhsv(242, 76%, 72%)
CMYKcmyk(73.2%, 76%, 0%, 28.2%)
CIE-LABlab(29.09, 47.17, -71.63)
CIE-LCHlch(29.09, 85.77, 303.37°)
OKLaboklab(40.9% 0.0137 -0.2072)
OKLCHoklch(40.9% 0.208 273.8)
XYZxyz(10.7117, 5.8721, 45.3595)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CB7 #B2B72C
analogous
#2C6DB7 #312CB7 #762CB7
triadic
#312CB7 #B7312C #2CB731
tetradic
#312CB7 #B72C6D #B2B72C #2CB776
square
#312CB7 #B72C6D #B2B72C #2CB776
split-complementary
#312CB7 #B7762C #6DB72C
monochromatic
#171454 #242086 #312CB7 #514CD4 #817EE0

Accessibility & contrast

On white

9.66
#312CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#312CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CB7
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CB7#FFFFFF#000000##FFFFFF
##312CB71.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBB
Deuteranopia (green-blind)
#003EB5
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312cb7;
/* rgb */ color: rgb(49, 44, 183);
/* oklch */ color: oklch(40.9% 0.208 273.8);
Tailwind
colors: {
  custom: {
    50: '#7e68ce',
    500: '#312cb7',
    950: '#000000',
  },
}
SCSS
$custom: #312cb7;
$custom-light: #7e68ce;
$custom-dark: #000000;
JSON
{
  "hex": "#312cb7",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 242.158,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.409,
    "c": 0.20768,
    "h": 273.8
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#312CB7
secondary
#C5C876
accent
#E443DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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