#312F8A#312F8A

#312F8A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.147 H 277.4°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#312F8A
RGBrgb(49, 47, 138)
HSLhsl(241, 49%, 36%)
HSVhsv(241, 66%, 54%)
CMYKcmyk(64.5%, 65.9%, 0%, 45.9%)
CIE-LABlab(25.32, 30.16, -50.48)
CIE-LCHlch(25.32, 58.81, 300.85°)
OKLaboklab(36.87% 0.0189 -0.1455)
OKLCHoklch(36.87% 0.147 277.4)
XYZxyz(6.8691, 4.5204, 24.5504)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F8A #888A2F
analogous
#2F5B8A #312F8A #5F2F8A
triadic
#312F8A #8A312F #2F8A31
tetradic
#312F8A #8A2F5B #888A2F #2F8A5F
square
#312F8A #8A2F5B #888A2F #2F8A5F
split-complementary
#312F8A #8A5F2F #5B8A2F
monochromatic
#11102F #211F5C #312F8A #413FB8 #6A68CC

Accessibility & contrast

On white

11.03
#312F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#312F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F8A
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F8A#FFFFFF#000000##FFFFFF
##312F8A1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312f8a;
/* rgb */ color: rgb(49, 47, 138);
/* oklch */ color: oklch(36.9% 0.147 277.4);
Tailwind
colors: {
  custom: {
    50: '#7468ad',
    500: '#312f8a',
    950: '#000000',
  },
}
SCSS
$custom: #312f8a;
$custom-light: #7468ad;
$custom-dark: #000000;
JSON
{
  "hex": "#312f8a",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 241.319,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36869,
    "c": 0.14668,
    "h": 277.4
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#312F8A
secondary
#B1B362
accent
#D94FD6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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