#312BB5#312BB5

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

Color values

HEX#312BB5
RGBrgb(49, 43, 181)
HSLhsl(243, 62%, 44%)
HSVhsv(243, 76%, 71%)
CMYKcmyk(72.9%, 76.2%, 0%, 29%)
CIE-LABlab(28.68, 47.07, -71.11)
CIE-LCHlch(28.68, 85.28, 303.50°)
OKLaboklab(40.55% 0.0145 -0.2057)
OKLCHoklch(40.55% 0.206 274)
XYZxyz(10.4682, 5.7159, 44.2587)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BB5 #AFB52B
analogous
#2B6AB5 #312BB5 #762BB5
triadic
#312BB5 #B5312B #2BB531
tetradic
#312BB5 #B52B6A #AFB52B #2BB576
square
#312BB5 #B52B6A #AFB52B #2BB576
split-complementary
#312BB5 #B5762B #6AB52B
monochromatic
#161452 #241F84 #312BB5 #4F49D4 #7F7BE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312BB5#FFFFFF#000000##FFFFFF
##312BB51.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)
#004AB9
Deuteranopia (green-blind)
#003DB3
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312bb5;
/* rgb */ color: rgb(49, 43, 181);
/* oklch */ color: oklch(40.6% 0.206 274.0);
Tailwind
colors: {
  custom: {
    50: '#7e67cd',
    500: '#312bb5',
    950: '#000000',
  },
}
SCSS
$custom: #312bb5;
$custom-light: #7e67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#312bb5",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 242.609,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40553,
    "c": 0.20622,
    "h": 274
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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