#31365E#31365E

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

Color values

HEX#31365E
RGBrgb(49, 54, 94)
HSLhsl(233, 31%, 28%)
HSVhsv(233, 48%, 37%)
CMYKcmyk(47.9%, 42.6%, 0%, 63.1%)
CIE-LABlab(24.00, 9.89, -24.57)
CIE-LCHlch(24.00, 26.49, 291.92°)
OKLaboklab(34.85% 0.0082 -0.0693)
OKLCHoklch(34.85% 0.07 276.7)
XYZxyz(4.6056, 4.0992, 11.1361)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31365E #5E5931
analogous
#314C5E #31365E #42315E
triadic
#31365E #5E3136 #365E31
tetradic
#31365E #5E314C #5E5931 #315E42
square
#31365E #5E314C #5E5931 #315E42
split-complementary
#31365E #5E4231 #4C5E31
monochromatic
#0A0C14 #1C1F36 #31365E #464D86 #5E67AB

Accessibility & contrast

On white

11.54
#31365E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31365E
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31365E#FFFFFF#000000##FFFFFF
##31365E1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273B60
Deuteranopia (green-blind)
#24375D
Tritanopia (blue-blind)
#223E45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31365e;
/* rgb */ color: rgb(49, 54, 94);
/* oklch */ color: oklch(34.9% 0.070 276.7);
Tailwind
colors: {
  custom: {
    50: '#6c6c8c',
    500: '#31365e',
    950: '#000000',
  },
}
SCSS
$custom: #31365e;
$custom-light: #6c6c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#31365e",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 94
  },
  "hsl": {
    "h": 233.333,
    "s": 31.469,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34851,
    "c": 0.06979,
    "h": 276.7
  },
  "luminance": 0.04099
}

Semantic roles & 50–950 ramp

primary
#31365E
secondary
#8F8A5C
accent
#BC60C8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #31365E

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

Preview Lab → · Contrast checker → · Palette generator →

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