#312CB9#312CB9

#312CB9 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.210 H 273.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#312CB9
RGBrgb(49, 44, 185)
HSLhsl(242, 62%, 45%)
HSVhsv(242, 76%, 73%)
CMYKcmyk(73.5%, 76.2%, 0%, 27.5%)
CIE-LABlab(29.30, 47.82, -72.47)
CIE-LCHlch(29.30, 86.82, 303.42°)
OKLaboklab(41.11% 0.0133 -0.2097)
OKLCHoklch(41.11% 0.21 273.6)
XYZxyz(10.9213, 5.9560, 46.4636)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CB9 #B4B92C
analogous
#2C6DB9 #312CB9 #782CB9
triadic
#312CB9 #B9312C #2CB931
tetradic
#312CB9 #B92C6D #B4B92C #2CB978
square
#312CB9 #B92C6D #B4B92C #2CB978
split-complementary
#312CB9 #B9782C #6DB92C
monochromatic
#171456 #242088 #312CB9 #524DD5 #827FE1

Accessibility & contrast

On white

9.58
#312CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#312CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CB9
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CB9#FFFFFF#000000##FFFFFF
##312CB91.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#003EB7
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312cb9;
/* rgb */ color: rgb(49, 44, 185);
/* oklch */ color: oklch(41.1% 0.210 273.6);
Tailwind
colors: {
  custom: {
    50: '#7f68cf',
    500: '#312cb9',
    950: '#000000',
  },
}
SCSS
$custom: #312cb9;
$custom-light: #7f68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#312cb9",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 242.128,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41114,
    "c": 0.21008,
    "h": 273.6
  },
  "luminance": 0.05957
}

Semantic roles & 50–950 ramp

primary
#312CB9
secondary
#C6C978
accent
#E543DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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