#312EB2#312EB2

#312EB2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.200 H 273.9°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#312EB2
RGBrgb(49, 46, 178)
HSLhsl(241, 59%, 44%)
HSVhsv(241, 74%, 70%)
CMYKcmyk(72.5%, 74.2%, 0%, 30.2%)
CIE-LABlab(28.95, 44.43, -68.88)
CIE-LCHlch(28.95, 81.96, 302.83°)
OKLaboklab(40.65% 0.0137 -0.1992)
OKLCHoklch(40.65% 0.2 273.9)
XYZxyz(10.2768, 5.8203, 42.6927)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EB2 #AFB22E
analogous
#2E6DB2 #312EB2 #732EB2
triadic
#312EB2 #B2312E #2EB231
tetradic
#312EB2 #B22E6D #AFB22E #2EB273
square
#312EB2 #B22E6D #AFB22E #2EB273
split-complementary
#312EB2 #B2732E #6DB22E
monochromatic
#161551 #242181 #312EB2 #4F4CD1 #7F7DDD

Accessibility & contrast

On white

9.70
#312EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312EB2
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EB2#FFFFFF#000000##FFFFFF
##312EB21.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312eb2;
/* rgb */ color: rgb(49, 46, 178);
/* oklch */ color: oklch(40.6% 0.200 273.9);
Tailwind
colors: {
  custom: {
    50: '#7d68ca',
    500: '#312eb2',
    950: '#000000',
  },
}
SCSS
$custom: #312eb2;
$custom-light: #7d68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312eb2",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 241.364,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4065,
    "c": 0.1997,
    "h": 273.9
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#312EB2
secondary
#C4C676
accent
#E246DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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