#312FBE#312FBE

#312FBE is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.1% C 0.213 H 272.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#312FBE
RGBrgb(49, 47, 190)
HSLhsl(241, 60%, 46%)
HSVhsv(241, 75%, 75%)
CMYKcmyk(74.2%, 75.3%, 0%, 25.5%)
CIE-LABlab(30.41, 47.80, -73.60)
CIE-LCHlch(30.41, 87.76, 303.01°)
OKLaboklab(42.05% 0.011 -0.213)
OKLCHoklch(42.05% 0.213 272.9)
XYZxyz(11.5743, 6.4025, 49.3310)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FBE #BCBE2F
analogous
#2F75BE #312FBE #792FBE
triadic
#312FBE #BE312F #2FBE31
tetradic
#312FBE #BE2F75 #BCBE2F #2FBE79
square
#312FBE #BE2F75 #BCBE2F #2FBE79
split-complementary
#312FBE #BE792F #75BE2F
monochromatic
#18175C #24238D #312FBE #5755D5 #8886E1

Accessibility & contrast

On white

9.21
#312FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#312FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FBE
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FBE#FFFFFF#000000##FFFFFF
##312FBE1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC2
Deuteranopia (green-blind)
#0041BB
Tritanopia (blue-blind)
#005975
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #312fbe;
/* rgb */ color: rgb(49, 47, 190);
/* oklch */ color: oklch(42.1% 0.213 272.9);
Tailwind
colors: {
  custom: {
    50: '#806ad3',
    500: '#312fbe',
    950: '#000000',
  },
}
SCSS
$custom: #312fbe;
$custom-light: #806ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#312fbe",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 240.839,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.42052,
    "c": 0.21326,
    "h": 272.9
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#312FBE
secondary
#CACB7E
accent
#E344E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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