#312FBB#312FBB

#312FBB is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.7% C 0.210 H 273.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#312FBB
RGBrgb(49, 47, 187)
HSLhsl(241, 60%, 46%)
HSVhsv(241, 75%, 73%)
CMYKcmyk(73.8%, 74.9%, 0%, 26.7%)
CIE-LABlab(30.09, 46.83, -72.35)
CIE-LCHlch(30.09, 86.18, 302.91°)
OKLaboklab(41.73% 0.0115 -0.2093)
OKLCHoklch(41.73% 0.21 273.2)
XYZxyz(11.2498, 6.2727, 47.6219)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FBB #B9BB2F
analogous
#2F73BB #312FBB #772FBB
triadic
#312FBB #BB312F #2FBB31
tetradic
#312FBB #BB2F73 #B9BB2F #2FBB77
square
#312FBB #BB2F73 #B9BB2F #2FBB77
split-complementary
#312FBB #BB772F #73BB2F
monochromatic
#171659 #24238A #312FBB #5553D4 #8684E0

Accessibility & contrast

On white

9.31
#312FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312FBB
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FBB#FFFFFF#000000##FFFFFF
##312FBB1.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBF
Deuteranopia (green-blind)
#0040B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312fbb;
/* rgb */ color: rgb(49, 47, 187);
/* oklch */ color: oklch(41.7% 0.210 273.2);
Tailwind
colors: {
  custom: {
    50: '#7f6ad1',
    500: '#312fbb',
    950: '#000000',
  },
}
SCSS
$custom: #312fbb;
$custom-light: #7f6ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#312fbb",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 240.857,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41734,
    "c": 0.20966,
    "h": 273.2
  },
  "luminance": 0.06274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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