#312FB7#312FB7

#312FB7 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.3% C 0.205 H 273.4°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#312FB7
RGBrgb(49, 47, 183)
HSLhsl(241, 59%, 45%)
HSVhsv(241, 74%, 72%)
CMYKcmyk(73.2%, 74.3%, 0%, 28.2%)
CIE-LABlab(29.67, 45.52, -70.67)
CIE-LCHlch(29.67, 84.06, 302.79°)
OKLaboklab(41.32% 0.0123 -0.2044)
OKLCHoklch(41.32% 0.205 273.4)
XYZxyz(10.8275, 6.1038, 45.3981)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FB7 #B5B72F
analogous
#2F71B7 #312FB7 #752FB7
triadic
#312FB7 #B7312F #2FB731
tetradic
#312FB7 #B72F71 #B5B72F #2FB775
square
#312FB7 #B72F71 #B5B72F #2FB775
split-complementary
#312FB7 #B7752F #71B72F
monochromatic
#171656 #242286 #312FB7 #5351D2 #8382DF

Accessibility & contrast

On white

9.46
#312FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#312FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FB7
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FB7#FFFFFF#000000##FFFFFF
##312FB71.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312fb7;
/* rgb */ color: rgb(49, 47, 183);
/* oklch */ color: oklch(41.3% 0.205 273.4);
Tailwind
colors: {
  custom: {
    50: '#7e69ce',
    500: '#312fb7',
    950: '#000000',
  },
}
SCSS
$custom: #312fb7;
$custom-light: #7e69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#312fb7",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 240.882,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41315,
    "c": 0.20482,
    "h": 273.4
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#312FB7
secondary
#C7C87A
accent
#E245E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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