#312D85#312D85

#312D85 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.142 H 278.5°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#312D85
RGBrgb(49, 45, 133)
HSLhsl(243, 49%, 35%)
HSVhsv(243, 66%, 52%)
CMYKcmyk(63.2%, 66.2%, 0%, 47.8%)
CIE-LABlab(24.39, 29.70, -48.88)
CIE-LCHlch(24.39, 57.19, 301.28°)
OKLaboklab(36.06% 0.0211 -0.1408)
OKLCHoklch(36.06% 0.142 278.5)
XYZxyz(6.4373, 4.2227, 22.6616)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312D85 #81852D
analogous
#2D5585 #312D85 #5D2D85
triadic
#312D85 #85312D #2D8531
tetradic
#312D85 #852D55 #81852D #2D855D
square
#312D85 #852D55 #81852D #2D855D
split-complementary
#312D85 #855D2D #55852D
monochromatic
#0F0E2A #201E57 #312D85 #423CB3 #6762CA

Accessibility & contrast

On white

11.38
#312D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#312D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312D85
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312D85#FFFFFF#000000##FFFFFF
##312D851.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312d85;
/* rgb */ color: rgb(49, 45, 133);
/* oklch */ color: oklch(36.1% 0.142 278.5);
Tailwind
colors: {
  custom: {
    50: '#7366a9',
    500: '#312d85',
    950: '#000000',
  },
}
SCSS
$custom: #312d85;
$custom-light: #7366a9;
$custom-dark: #000000;
JSON
{
  "hex": "#312d85",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 242.727,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36056,
    "c": 0.14233,
    "h": 278.5
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

primary
#312D85
secondary
#ADB05D
accent
#D94FD3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312D85

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

Preview Lab → · Contrast checker → · Palette generator →

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