#312F85#312F85

#312F85 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.140 H 277.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#312F85
RGBrgb(49, 47, 133)
HSLhsl(241, 48%, 35%)
HSVhsv(241, 65%, 52%)
CMYKcmyk(63.2%, 64.7%, 0%, 47.8%)
CIE-LABlab(24.89, 28.39, -48.08)
CIE-LCHlch(24.89, 55.83, 300.57°)
OKLaboklab(36.42% 0.0193 -0.1384)
OKLCHoklch(36.42% 0.14 277.9)
XYZxyz(6.5154, 4.3790, 22.6876)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F85 #83852F
analogous
#2F5885 #312F85 #5C2F85
triadic
#312F85 #85312F #2F8531
tetradic
#312F85 #852F58 #83852F #2F855C
square
#312F85 #852F58 #83852F #2F855C
split-complementary
#312F85 #855C2F #58852F
monochromatic
#100F2B #201F58 #312F85 #423FB2 #6866C9

Accessibility & contrast

On white

11.20
#312F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#312F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F85
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F85#FFFFFF#000000##FFFFFF
##312F851.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312f85;
/* rgb */ color: rgb(49, 47, 133);
/* oklch */ color: oklch(36.4% 0.140 277.9);
Tailwind
colors: {
  custom: {
    50: '#7368a9',
    500: '#312f85',
    950: '#000000',
  },
}
SCSS
$custom: #312f85;
$custom-light: #7368a9;
$custom-dark: #000000;
JSON
{
  "hex": "#312f85",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 241.395,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36415,
    "c": 0.13972,
    "h": 277.9
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#312F85
secondary
#AEB060
accent
#D750D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312F85

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

Preview Lab → · Contrast checker → · Palette generator →

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