#31367E#31367E

#31367E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.2% C 0.120 H 275.9°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#31367E
RGBrgb(49, 54, 126)
HSLhsl(236, 44%, 34%)
HSVhsv(236, 61%, 49%)
CMYKcmyk(61.1%, 57.1%, 0%, 50.6%)
CIE-LABlab(26.15, 21.21, -41.63)
CIE-LCHlch(26.15, 46.73, 297.00°)
OKLaboklab(37.17% 0.0123 -0.1194)
OKLCHoklch(37.17% 0.12 275.9)
XYZxyz(6.3505, 4.7972, 20.3259)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31367E #7E7931
analogous
#315D7E #31367E #53317E
triadic
#31367E #7E3136 #367E31
tetradic
#31367E #7E315D #7E7931 #317E53
square
#31367E #7E315D #7E7931 #317E53
split-complementary
#31367E #7E5331 #5D7E31
monochromatic
#0F1026 #202352 #31367E #4249AA #666CC3

Accessibility & contrast

On white

10.72
#31367E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#31367E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31367E
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31367E#FFFFFF#000000##FFFFFF
##31367E1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034180
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31367e;
/* rgb */ color: rgb(49, 54, 126);
/* oklch */ color: oklch(37.2% 0.120 275.9);
Tailwind
colors: {
  custom: {
    50: '#716da4',
    500: '#31367e',
    950: '#000000',
  },
}
SCSS
$custom: #31367e;
$custom-light: #716da4;
$custom-dark: #000000;
JSON
{
  "hex": "#31367e",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 126
  },
  "hsl": {
    "h": 236.104,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37171,
    "c": 0.12002,
    "h": 275.9
  },
  "luminance": 0.04798
}

Semantic roles & 50–950 ramp

primary
#31367E
secondary
#ABA660
accent
#CB54D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31367E

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

Preview Lab → · Contrast checker → · Palette generator →

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