#312FB1#312FB1

#312FB1 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.197 H 273.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#312FB1
RGBrgb(49, 47, 177)
HSLhsl(241, 58%, 44%)
HSVhsv(241, 73%, 69%)
CMYKcmyk(72.3%, 73.4%, 0%, 30.6%)
CIE-LABlab(29.05, 43.53, -68.11)
CIE-LCHlch(29.05, 80.84, 302.58°)
OKLaboklab(40.69% 0.0134 -0.197)
OKLCHoklch(40.69% 0.197 273.9)
XYZxyz(10.2163, 5.8593, 42.1790)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FB1 #AFB12F
analogous
#2F6EB1 #312FB1 #722FB1
triadic
#312FB1 #B1312F #2FB131
tetradic
#312FB1 #B12F6E #AFB12F #2FB172
square
#312FB1 #B12F6E #AFB12F #2FB172
split-complementary
#312FB1 #B1722F #6EB12F
monochromatic
#161550 #242281 #312FB1 #4F4DD0 #7F7EDD

Accessibility & contrast

On white

9.67
#312FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#312FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FB1
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FB1#FFFFFF#000000##FFFFFF
##312FB11.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312fb1;
/* rgb */ color: rgb(49, 47, 177);
/* oklch */ color: oklch(40.7% 0.197 273.9);
Tailwind
colors: {
  custom: {
    50: '#7d69ca',
    500: '#312fb1',
    950: '#000000',
  },
}
SCSS
$custom: #312fb1;
$custom-light: #7d69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312fb1",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 240.923,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40691,
    "c": 0.19746,
    "h": 273.9
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#312FB1
secondary
#C4C576
accent
#E147DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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