#312FBA#312FBA

#312FBA is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.6% C 0.208 H 273.2°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#312FBA
RGBrgb(49, 47, 186)
HSLhsl(241, 60%, 46%)
HSVhsv(241, 75%, 73%)
CMYKcmyk(73.7%, 74.7%, 0%, 27.1%)
CIE-LABlab(29.99, 46.50, -71.93)
CIE-LCHlch(29.99, 85.65, 302.88°)
OKLaboklab(41.63% 0.0117 -0.2081)
OKLCHoklch(41.63% 0.208 273.2)
XYZxyz(11.1431, 6.2300, 47.0601)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FBA #B8BA2F
analogous
#2F73BA #312FBA #762FBA
triadic
#312FBA #BA312F #2FBA31
tetradic
#312FBA #BA2F73 #B8BA2F #2FBA76
square
#312FBA #BA2F73 #B8BA2F #2FBA76
split-complementary
#312FBA #BA762F #73BA2F
monochromatic
#171658 #242389 #312FBA #5553D3 #8584E0

Accessibility & contrast

On white

9.35
#312FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#312FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FBA
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FBA#FFFFFF#000000##FFFFFF
##312FBA1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0040B8
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312fba;
/* rgb */ color: rgb(49, 47, 186);
/* oklch */ color: oklch(41.6% 0.208 273.2);
Tailwind
colors: {
  custom: {
    50: '#7f69d0',
    500: '#312fba',
    950: '#000000',
  },
}
SCSS
$custom: #312fba;
$custom-light: #7f69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#312fba",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 240.863,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41629,
    "c": 0.20845,
    "h": 273.2
  },
  "luminance": 0.06231
}

Semantic roles & 50–950 ramp

primary
#312FBA
secondary
#C8C97C
accent
#E345E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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