#31368E#31368E

#31368E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.143 H 274.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#31368E
RGBrgb(49, 54, 142)
HSLhsl(237, 49%, 37%)
HSVhsv(237, 65%, 56%)
CMYKcmyk(65.5%, 62%, 0%, 44.3%)
CIE-LABlab(27.42, 26.99, -49.55)
CIE-LCHlch(27.42, 56.42, 298.58°)
OKLaboklab(38.51% 0.0124 -0.1427)
OKLCHoklch(38.51% 0.143 274.9)
XYZxyz(7.4667, 5.2437, 26.2046)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31368E #8E8931
analogous
#31658E #31368E #5A318E
triadic
#31368E #8E3136 #368E31
tetradic
#31368E #8E3165 #8E8931 #318E5A
square
#31368E #8E3165 #8E8931 #318E5A
split-complementary
#31368E #8E5A31 #658E31
monochromatic
#121333 #212561 #31368E #4147BB #6D72CD

Accessibility & contrast

On white

10.25
#31368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#31368E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31368E
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31368E#FFFFFF#000000##FFFFFF
##31368E1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31368e;
/* rgb */ color: rgb(49, 54, 142);
/* oklch */ color: oklch(38.5% 0.143 274.9);
Tailwind
colors: {
  custom: {
    50: '#746db0',
    500: '#31368e',
    950: '#000000',
  },
}
SCSS
$custom: #31368e;
$custom-light: #746db0;
$custom-dark: #000000;
JSON
{
  "hex": "#31368e",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 236.774,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38513,
    "c": 0.14319,
    "h": 274.9
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

primary
#31368E
secondary
#B4B067
accent
#D150D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31368E

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

Preview Lab → · Contrast checker → · Palette generator →

#31368E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva