#312E7D#312E7D

#312E7D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.130 H 279.2°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#312E7D
RGBrgb(49, 46, 125)
HSLhsl(242, 46%, 34%)
HSVhsv(242, 63%, 49%)
CMYKcmyk(60.8%, 63.2%, 0%, 51%)
CIE-LABlab(23.96, 26.23, -44.56)
CIE-LCHlch(23.96, 51.71, 300.49°)
OKLaboklab(35.52% 0.0207 -0.1281)
OKLCHoklch(35.52% 0.13 279.2)
XYZxyz(5.9441, 4.0872, 19.8737)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E7D #7A7D2E
analogous
#2E527D #312E7D #582E7D
triadic
#312E7D #7D312E #2E7D31
tetradic
#312E7D #7D2E52 #7A7D2E #2E7D58
square
#312E7D #7D2E52 #7A7D2E #2E7D58
split-complementary
#312E7D #7D582E #527D2E
monochromatic
#0E0D24 #1F1E50 #312E7D #433EAA #6461C5

Accessibility & contrast

On white

11.55
#312E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#312E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E7D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E7D#FFFFFF#000000##FFFFFF
##312E7D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312e7d;
/* rgb */ color: rgb(49, 46, 125);
/* oklch */ color: oklch(35.5% 0.130 279.2);
Tailwind
colors: {
  custom: {
    50: '#7267a3',
    500: '#312e7d',
    950: '#000000',
  },
}
SCSS
$custom: #312e7d;
$custom-light: #7267a3;
$custom-dark: #000000;
JSON
{
  "hex": "#312e7d",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 242.278,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35523,
    "c": 0.12972,
    "h": 279.2
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#312E7D
secondary
#A8AB5B
accent
#D652D1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #312E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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