#31365A#31365A

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

Color values

HEX#31365A
RGBrgb(49, 54, 90)
HSLhsl(233, 29%, 27%)
HSVhsv(233, 46%, 35%)
CMYKcmyk(45.6%, 40%, 0%, 64.7%)
CIE-LABlab(23.77, 8.53, -22.31)
CIE-LCHlch(23.77, 23.89, 290.93°)
OKLaboklab(34.6% 0.0072 -0.0627)
OKLCHoklch(34.6% 0.063 276.6)
XYZxyz(4.4307, 4.0293, 10.2151)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31365A #5A5531
analogous
#314B5A #31365A #41315A
triadic
#31365A #5A3136 #365A31
tetradic
#31365A #5A314B #5A5531 #315A41
square
#31365A #5A314B #5A5531 #315A41
split-complementary
#31365A #5A4131 #4B5A31
monochromatic
#0B0C14 #1B1E32 #31365A #474E82 #5E67A7

Accessibility & contrast

On white

11.63
#31365A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31365A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31365A#FFFFFF#000000##FFFFFF
##31365A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293A5B
Deuteranopia (green-blind)
#263759
Tritanopia (blue-blind)
#243D43
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31365a;
/* rgb */ color: rgb(49, 54, 90);
/* oklch */ color: oklch(34.6% 0.063 276.6);
Tailwind
colors: {
  custom: {
    50: '#6b6c89',
    500: '#31365a',
    950: '#000000',
  },
}
SCSS
$custom: #31365a;
$custom-light: #6b6c89;
$custom-dark: #000000;
JSON
{
  "hex": "#31365a",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 90
  },
  "hsl": {
    "h": 232.683,
    "s": 29.496,
    "l": 27.255
  },
  "oklch": {
    "l": 0.346,
    "c": 0.06314,
    "h": 276.6
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31365A

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

Preview Lab → · Contrast checker → · Palette generator →

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