#312FB3#312FB3

#312FB3 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.9% C 0.200 H 273.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#312FB3
RGBrgb(49, 47, 179)
HSLhsl(241, 58%, 44%)
HSVhsv(241, 74%, 70%)
CMYKcmyk(72.6%, 73.7%, 0%, 29.8%)
CIE-LABlab(29.26, 44.20, -68.97)
CIE-LCHlch(29.26, 81.91, 302.65°)
OKLaboklab(40.9% 0.013 -0.1995)
OKLCHoklch(40.9% 0.2 273.7)
XYZxyz(10.4171, 5.9396, 43.2366)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FB3 #B1B32F
analogous
#2F6FB3 #312FB3 #732FB3
triadic
#312FB3 #B3312F #2FB331
tetradic
#312FB3 #B32F6F #B1B32F #2FB373
square
#312FB3 #B32F6F #B1B32F #2FB373
split-complementary
#312FB3 #B3732F #6FB32F
monochromatic
#161652 #242283 #312FB3 #514FD1 #807FDD

Accessibility & contrast

On white

9.60
#312FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#312FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FB3
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FB3#FFFFFF#000000##FFFFFF
##312FB31.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312fb3;
/* rgb */ color: rgb(49, 47, 179);
/* oklch */ color: oklch(40.9% 0.200 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d69cb',
    500: '#312fb3',
    950: '#000000',
  },
}
SCSS
$custom: #312fb3;
$custom-light: #7d69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#312fb3",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 240.909,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40898,
    "c": 0.19992,
    "h": 273.7
  },
  "luminance": 0.05941
}

Semantic roles & 50–950 ramp

primary
#312FB3
secondary
#C5C678
accent
#E246DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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