#31365B#31365B

#31365B is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.7% C 0.065 H 276.6°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#31365B
RGBrgb(49, 54, 91)
HSLhsl(233, 30%, 27%)
HSVhsv(233, 46%, 36%)
CMYKcmyk(46.2%, 40.7%, 0%, 64.3%)
CIE-LABlab(23.82, 8.87, -22.88)
CIE-LCHlch(23.82, 24.54, 291.19°)
OKLaboklab(34.66% 0.0075 -0.0644)
OKLCHoklch(34.66% 0.065 276.6)
XYZxyz(4.4735, 4.0464, 10.4408)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31365B #5B5631
analogous
#314B5B #31365B #41315B
triadic
#31365B #5B3136 #365B31
tetradic
#31365B #5B314B #5B5631 #315B41
square
#31365B #5B314B #5B5631 #315B41
split-complementary
#31365B #5B4131 #4B5B31
monochromatic
#0B0C14 #1C1E33 #31365B #464E83 #5E67A8

Accessibility & contrast

On white

11.61
#31365B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#31365B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31365B
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31365B#FFFFFF#000000##FFFFFF
##31365B1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293A5C
Deuteranopia (green-blind)
#26375A
Tritanopia (blue-blind)
#233D44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31365b;
/* rgb */ color: rgb(49, 54, 91);
/* oklch */ color: oklch(34.7% 0.065 276.6);
Tailwind
colors: {
  custom: {
    50: '#6b6c89',
    500: '#31365b',
    950: '#000000',
  },
}
SCSS
$custom: #31365b;
$custom-light: #6b6c89;
$custom-dark: #000000;
JSON
{
  "hex": "#31365b",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 91
  },
  "hsl": {
    "h": 232.857,
    "s": 30,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34662,
    "c": 0.06481,
    "h": 276.6
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#31365B
secondary
#8C865C
accent
#BA62C6
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07070B
muted
#7A7A7C

Preview Lab

Preview with #31365B

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

Preview Lab → · Contrast checker → · Palette generator →

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