#312F7D#312F7D

#312F7D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.128 H 278.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#312F7D
RGBrgb(49, 47, 125)
HSLhsl(242, 45%, 34%)
HSVhsv(242, 62%, 49%)
CMYKcmyk(60.8%, 62.4%, 0%, 51%)
CIE-LABlab(24.21, 25.57, -44.14)
CIE-LCHlch(24.21, 51.01, 300.08°)
OKLaboklab(35.71% 0.0197 -0.1268)
OKLCHoklch(35.71% 0.128 278.8)
XYZxyz(5.9836, 4.1662, 19.8869)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F7D #7B7D2F
analogous
#2F547D #312F7D #582F7D
triadic
#312F7D #7D312F #2F7D31
tetradic
#312F7D #7D2F54 #7B7D2F #2F7D58
square
#312F7D #7D2F54 #7B7D2F #2F7D58
split-complementary
#312F7D #7D582F #547D2F
monochromatic
#0E0E24 #201E51 #312F7D #4240A9 #6562C4

Accessibility & contrast

On white

11.45
#312F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#312F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F7D
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F7D#FFFFFF#000000##FFFFFF
##312F7D1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312f7d;
/* rgb */ color: rgb(49, 47, 125);
/* oklch */ color: oklch(35.7% 0.128 278.8);
Tailwind
colors: {
  custom: {
    50: '#7167a3',
    500: '#312f7d',
    950: '#000000',
  },
}
SCSS
$custom: #312f7d;
$custom-light: #7167a3;
$custom-dark: #000000;
JSON
{
  "hex": "#312f7d",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 241.538,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35711,
    "c": 0.12835,
    "h": 278.8
  },
  "luminance": 0.04167
}

Semantic roles & 50–950 ramp

primary
#312F7D
secondary
#A9AB5D
accent
#D553D2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #312F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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