#312B83#312B83

#312B83 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.142 H 279.4°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#312B83
RGBrgb(49, 43, 131)
HSLhsl(244, 51%, 34%)
HSVhsv(244, 67%, 51%)
CMYKcmyk(62.6%, 67.2%, 0%, 48.6%)
CIE-LABlab(23.73, 30.29, -48.70)
CIE-LCHlch(23.73, 57.35, 301.88°)
OKLaboklab(35.52% 0.0231 -0.1403)
OKLCHoklch(35.52% 0.142 279.4)
XYZxyz(6.2259, 4.0190, 21.9160)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B83 #7D832B
analogous
#2B5183 #312B83 #5D2B83
triadic
#312B83 #83312B #2B8331
tetradic
#312B83 #832B51 #7D832B #2B835D
square
#312B83 #832B51 #7D832B #2B835D
split-complementary
#312B83 #835D2B #51832B
monochromatic
#0F0D27 #201C55 #312B83 #423AB1 #665ECA

Accessibility & contrast

On white

11.64
#312B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#312B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312B83
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B83#FFFFFF#000000##FFFFFF
##312B831.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#003581
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312b83;
/* rgb */ color: rgb(49, 43, 131);
/* oklch */ color: oklch(35.5% 0.142 279.4);
Tailwind
colors: {
  custom: {
    50: '#7365a8',
    500: '#312b83',
    950: '#000000',
  },
}
SCSS
$custom: #312b83;
$custom-light: #7365a8;
$custom-dark: #000000;
JSON
{
  "hex": "#312b83",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 244.091,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3552,
    "c": 0.14214,
    "h": 279.4
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

primary
#312B83
secondary
#AAB05A
accent
#DA4ED1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #312B83

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

Preview Lab → · Contrast checker → · Palette generator →

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