#31327C#31327C

#31327C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.2% C 0.123 H 277.8°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#31327C
RGBrgb(49, 50, 124)
HSLhsl(239, 43%, 34%)
HSVhsv(239, 60%, 49%)
CMYKcmyk(60.5%, 59.7%, 0%, 51.4%)
CIE-LABlab(24.92, 23.20, -42.37)
CIE-LCHlch(24.92, 48.30, 298.71°)
OKLaboklab(36.21% 0.0166 -0.1216)
OKLCHoklch(36.21% 0.123 277.8)
XYZxyz(6.0442, 4.3890, 19.5935)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31327C #7C7B31
analogous
#31587C #31327C #56317C
triadic
#31327C #7C3132 #327C31
tetradic
#31327C #7C3158 #7C7B31 #317C56
square
#31327C #7C3158 #7C7B31 #317C56
split-complementary
#31327C #7C5631 #587C31
monochromatic
#0E0F24 #202050 #31327C #4244A8 #6566C2

Accessibility & contrast

On white

11.18
#31327C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#31327C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31327C
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31327C#FFFFFF#000000##FFFFFF
##31327C1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31327c;
/* rgb */ color: rgb(49, 50, 124);
/* oklch */ color: oklch(36.2% 0.123 277.8);
Tailwind
colors: {
  custom: {
    50: '#716aa2',
    500: '#31327c',
    950: '#000000',
  },
}
SCSS
$custom: #31327c;
$custom-light: #716aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#31327c",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 124
  },
  "hsl": {
    "h": 239.2,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36206,
    "c": 0.12271,
    "h": 277.8
  },
  "luminance": 0.04389
}

Semantic roles & 50–950 ramp

primary
#31327C
secondary
#AAA95F
accent
#D155D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31327C

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

Preview Lab → · Contrast checker → · Palette generator →

#31327C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva