#312EB3#312EB3

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

Color values

HEX#312EB3
RGBrgb(49, 46, 179)
HSLhsl(241, 59%, 44%)
HSVhsv(241, 74%, 70%)
CMYKcmyk(72.6%, 74.3%, 0%, 29.8%)
CIE-LABlab(29.06, 44.76, -69.30)
CIE-LCHlch(29.06, 82.50, 302.86°)
OKLaboklab(40.76% 0.0135 -0.2005)
OKLCHoklch(40.76% 0.201 273.9)
XYZxyz(10.3776, 5.8606, 43.2234)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EB3 #B0B32E
analogous
#2E6EB3 #312EB3 #742EB3
triadic
#312EB3 #B3312E #2EB331
tetradic
#312EB3 #B32E6E #B0B32E #2EB374
square
#312EB3 #B32E6E #B0B32E #2EB374
split-complementary
#312EB3 #B3742E #6EB32E
monochromatic
#161552 #242182 #312EB3 #504DD1 #807EDE

Accessibility & contrast

On white

9.67
#312EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312EB3
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EB3#FFFFFF#000000##FFFFFF
##312EB31.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312eb3;
/* rgb */ color: rgb(49, 46, 179);
/* oklch */ color: oklch(40.8% 0.201 273.9);
Tailwind
colors: {
  custom: {
    50: '#7d69cb',
    500: '#312eb3',
    950: '#000000',
  },
}
SCSS
$custom: #312eb3;
$custom-light: #7d69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#312eb3",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 241.353,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40755,
    "c": 0.20092,
    "h": 273.9
  },
  "luminance": 0.05862
}

Semantic roles & 50–950 ramp

primary
#312EB3
secondary
#C5C676
accent
#E246DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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