#31365D#31365D

#31365D is a dark, moderate blue. Relative luminance 0.041; OKLCH L 34.8% C 0.068 H 276.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#31365D
RGBrgb(49, 54, 93)
HSLhsl(233, 31%, 28%)
HSVhsv(233, 47%, 36%)
CMYKcmyk(47.3%, 41.9%, 0%, 63.5%)
CIE-LABlab(23.94, 9.55, -24.01)
CIE-LCHlch(23.94, 25.84, 291.68°)
OKLaboklab(34.79% 0.008 -0.0677)
OKLCHoklch(34.79% 0.068 276.7)
XYZxyz(4.5610, 4.0814, 10.9013)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31365D #5D5831
analogous
#314C5D #31365D #42315D
triadic
#31365D #5D3136 #365D31
tetradic
#31365D #5D314C #5D5831 #315D42
square
#31365D #5D314C #5D5831 #315D42
split-complementary
#31365D #5D4231 #4C5D31
monochromatic
#0B0C14 #1C1F35 #31365D #464D85 #5E67AA

Accessibility & contrast

On white

11.56
#31365D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#31365D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31365D
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31365D#FFFFFF#000000##FFFFFF
##31365D1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283B5F
Deuteranopia (green-blind)
#25375C
Tritanopia (blue-blind)
#223E45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31365d;
/* rgb */ color: rgb(49, 54, 93);
/* oklch */ color: oklch(34.8% 0.068 276.7);
Tailwind
colors: {
  custom: {
    50: '#6c6c8b',
    500: '#31365d',
    950: '#000000',
  },
}
SCSS
$custom: #31365d;
$custom-light: #6c6c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#31365d",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 93
  },
  "hsl": {
    "h": 233.182,
    "s": 30.986,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34787,
    "c": 0.06814,
    "h": 276.7
  },
  "luminance": 0.04082
}

Semantic roles & 50–950 ramp

primary
#31365D
secondary
#8E885C
accent
#BC61C7
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #31365D

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

Preview Lab → · Contrast checker → · Palette generator →

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