#312BB7#312BB7

#312BB7 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.8% C 0.209 H 273.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#312BB7
RGBrgb(49, 43, 183)
HSLhsl(243, 62%, 44%)
HSVhsv(243, 77%, 72%)
CMYKcmyk(73.2%, 76.5%, 0%, 28.2%)
CIE-LABlab(28.90, 47.71, -71.95)
CIE-LCHlch(28.90, 86.33, 303.55°)
OKLaboklab(40.77% 0.0141 -0.2081)
OKLCHoklch(40.77% 0.209 273.9)
XYZxyz(10.6749, 5.7985, 45.3472)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BB7 #B1B72B
analogous
#2B6BB7 #312BB7 #772BB7
triadic
#312BB7 #B7312B #2BB731
tetradic
#312BB7 #B72B6B #B1B72B #2BB777
square
#312BB7 #B72B6B #B1B72B #2BB777
split-complementary
#312BB7 #B7772B #6BB72B
monochromatic
#161454 #241F85 #312BB7 #514BD5 #807CE0

Accessibility & contrast

On white

9.72
#312BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#312BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BB7
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BB7#FFFFFF#000000##FFFFFF
##312BB71.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312bb7;
/* rgb */ color: rgb(49, 43, 183);
/* oklch */ color: oklch(40.8% 0.209 273.9);
Tailwind
colors: {
  custom: {
    50: '#7f67ce',
    500: '#312bb7',
    950: '#000000',
  },
}
SCSS
$custom: #312bb7;
$custom-light: #7f67ce;
$custom-dark: #000000;
JSON
{
  "hex": "#312bb7",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 242.571,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40767,
    "c": 0.20861,
    "h": 273.9
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#312BB7
secondary
#C5C975
accent
#E543DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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