#31367B#31367B

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

Color values

HEX#31367B
RGBrgb(49, 54, 123)
HSLhsl(236, 43%, 34%)
HSVhsv(236, 60%, 48%)
CMYKcmyk(60.2%, 56.1%, 0%, 51.8%)
CIE-LABlab(25.92, 20.13, -40.11)
CIE-LCHlch(25.92, 44.87, 296.65°)
OKLaboklab(36.93% 0.0122 -0.1149)
OKLCHoklch(36.93% 0.116 276)
XYZxyz(6.1598, 4.7209, 19.3217)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31367B #7B7631
analogous
#315B7B #31367B #51317B
triadic
#31367B #7B3136 #367B31
tetradic
#31367B #7B315B #7B7631 #317B51
square
#31367B #7B315B #7B7631 #317B51
split-complementary
#31367B #7B5131 #5B7B31
monochromatic
#0E1023 #20234F #31367B #4249A7 #656BC2

Accessibility & contrast

On white

10.80
#31367B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31367B
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31367B#FFFFFF#000000##FFFFFF
##31367B1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A417D
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#014653
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31367b;
/* rgb */ color: rgb(49, 54, 123);
/* oklch */ color: oklch(36.9% 0.116 276.0);
Tailwind
colors: {
  custom: {
    50: '#716da2',
    500: '#31367b',
    950: '#000000',
  },
}
SCSS
$custom: #31367b;
$custom-light: #716da2;
$custom-dark: #000000;
JSON
{
  "hex": "#31367b",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 123
  },
  "hsl": {
    "h": 235.946,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36932,
    "c": 0.11554,
    "h": 276
  },
  "luminance": 0.04721
}

Semantic roles & 50–950 ramp

primary
#31367B
secondary
#A9A45F
accent
#CA55D3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31367B

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

Preview Lab → · Contrast checker → · Palette generator →

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