#312CB3#312CB3

#312CB3 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.5% C 0.203 H 274.1°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#312CB3
RGBrgb(49, 44, 179)
HSLhsl(242, 61%, 44%)
HSVhsv(242, 75%, 70%)
CMYKcmyk(72.6%, 75.4%, 0%, 29.8%)
CIE-LABlab(28.66, 45.87, -69.95)
CIE-LCHlch(28.66, 83.65, 303.26°)
OKLaboklab(40.48% 0.0145 -0.2023)
OKLCHoklch(40.48% 0.203 274.1)
XYZxyz(10.3013, 5.7080, 43.1979)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CB3 #AEB32C
analogous
#2C6AB3 #312CB3 #742CB3
triadic
#312CB3 #B3312C #2CB331
tetradic
#312CB3 #B32C6A #AEB32C #2CB374
square
#312CB3 #B32C6A #AEB32C #2CB374
split-complementary
#312CB3 #B3742C #6AB32C
monochromatic
#161451 #242082 #312CB3 #4F4AD2 #7F7BDF

Accessibility & contrast

On white

9.80
#312CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#312CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CB3
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CB3#FFFFFF#000000##FFFFFF
##312CB31.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312cb3;
/* rgb */ color: rgb(49, 44, 179);
/* oklch */ color: oklch(40.5% 0.203 274.1);
Tailwind
colors: {
  custom: {
    50: '#7d67cb',
    500: '#312cb3',
    950: '#000000',
  },
}
SCSS
$custom: #312cb3;
$custom-light: #7d67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#312cb3",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 242.222,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40475,
    "c": 0.20287,
    "h": 274.1
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#312CB3
secondary
#C4C774
accent
#E444DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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