#312D73#312D73

#312D73 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.117 H 280.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#312D73
RGBrgb(49, 45, 115)
HSLhsl(243, 44%, 31%)
HSVhsv(243, 61%, 45%)
CMYKcmyk(57.4%, 60.9%, 0%, 54.9%)
CIE-LABlab(22.89, 23.39, -39.94)
CIE-LCHlch(22.89, 46.28, 300.36°)
OKLaboklab(34.48% 0.0221 -0.1145)
OKLCHoklch(34.48% 0.117 280.9)
XYZxyz(5.2986, 3.7672, 16.6643)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D73 #6F732D
analogous
#2D4C73 #312D73 #542D73
triadic
#312D73 #73312D #2D7331
tetradic
#312D73 #732D4C #6F732D #2D7354
square
#312D73 #732D4C #6F732D #2D7354
split-complementary
#312D73 #73542D #4C732D
monochromatic
#0C0B1B #1E1C47 #312D73 #443E9F #615BBF

Accessibility & contrast

On white

11.98
#312D73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#312D73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D73
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D73#FFFFFF#000000##FFFFFF
##312D731.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#123D4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312d73;
/* rgb */ color: rgb(49, 45, 115);
/* oklch */ color: oklch(34.5% 0.117 280.9);
Tailwind
colors: {
  custom: {
    50: '#70669c',
    500: '#312d73',
    950: '#000000',
  },
}
SCSS
$custom: #312d73;
$custom-light: #70669c;
$custom-dark: #000000;
JSON
{
  "hex": "#312d73",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 115
  },
  "hsl": {
    "h": 243.429,
    "s": 43.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34477,
    "c": 0.11659,
    "h": 280.9
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#312D73
secondary
#A0A457
accent
#D354CC
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #312D73

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

Preview Lab → · Contrast checker → · Palette generator →

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