#31367C#31367C

#31367C is a dark, moderate blue. Relative luminance 0.047; OKLCH L 37.0% C 0.117 H 276.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#31367C
RGBrgb(49, 54, 124)
HSLhsl(236, 43%, 34%)
HSVhsv(236, 60%, 49%)
CMYKcmyk(60.5%, 56.5%, 0%, 51.4%)
CIE-LABlab(26.00, 20.49, -40.62)
CIE-LCHlch(26.00, 45.49, 296.77°)
OKLaboklab(37.01% 0.0122 -0.1164)
OKLCHoklch(37.01% 0.117 276)
XYZxyz(6.2227, 4.7461, 19.6530)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31367C #7C7731
analogous
#315C7C #31367C #52317C
triadic
#31367C #7C3136 #367C31
tetradic
#31367C #7C315C #7C7731 #317C52
square
#31367C #7C315C #7C7731 #317C52
split-complementary
#31367C #7C5231 #5C7C31
monochromatic
#0E1024 #202350 #31367C #4249A8 #656BC2

Accessibility & contrast

On white

10.77
#31367C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#31367C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31367C
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31367C#FFFFFF#000000##FFFFFF
##31367C1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07417E
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31367c;
/* rgb */ color: rgb(49, 54, 124);
/* oklch */ color: oklch(37.0% 0.117 276.0);
Tailwind
colors: {
  custom: {
    50: '#716da2',
    500: '#31367c',
    950: '#000000',
  },
}
SCSS
$custom: #31367c;
$custom-light: #716da2;
$custom-dark: #000000;
JSON
{
  "hex": "#31367c",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 124
  },
  "hsl": {
    "h": 236,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37011,
    "c": 0.11704,
    "h": 276
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#31367C
secondary
#AAA55F
accent
#CB55D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31367C

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

Preview Lab → · Contrast checker → · Palette generator →

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