#31367A#31367A

#31367A is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.9% C 0.114 H 276.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#31367A
RGBrgb(49, 54, 122)
HSLhsl(236, 43%, 34%)
HSVhsv(236, 60%, 48%)
CMYKcmyk(59.8%, 55.7%, 0%, 52.2%)
CIE-LABlab(25.85, 19.77, -39.59)
CIE-LCHlch(25.85, 44.25, 296.53°)
OKLaboklab(36.85% 0.0121 -0.1134)
OKLCHoklch(36.85% 0.114 276.1)
XYZxyz(6.0975, 4.6960, 18.9937)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31367A #7A7531
analogous
#315A7A #31367A #50317A
triadic
#31367A #7A3136 #367A31
tetradic
#31367A #7A315A #7A7531 #317A50
square
#31367A #7A315A #7A7531 #317A50
split-complementary
#31367A #7A5031 #5A7A31
monochromatic
#0E0F23 #1F234E #31367A #4349A6 #646BC1

Accessibility & contrast

On white

10.83
#31367A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#31367A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31367A
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31367A#FFFFFF#000000##FFFFFF
##31367A1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C407C
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#034652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31367a;
/* rgb */ color: rgb(49, 54, 122);
/* oklch */ color: oklch(36.9% 0.114 276.1);
Tailwind
colors: {
  custom: {
    50: '#706da1',
    500: '#31367a',
    950: '#000000',
  },
}
SCSS
$custom: #31367a;
$custom-light: #706da1;
$custom-dark: #000000;
JSON
{
  "hex": "#31367a",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 122
  },
  "hsl": {
    "h": 235.89,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36853,
    "c": 0.11404,
    "h": 276.1
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#31367A
secondary
#A8A35E
accent
#CA55D2
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31367A

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

Preview Lab → · Contrast checker → · Palette generator →

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