#31335B#31335B

#31335B is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.0% C 0.070 H 279.8°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#31335B
RGBrgb(49, 51, 91)
HSLhsl(237, 30%, 27%)
HSVhsv(237, 46%, 36%)
CMYKcmyk(46.2%, 44%, 0%, 64.3%)
CIE-LABlab(22.92, 10.95, -24.31)
CIE-LCHlch(22.92, 26.66, 294.24°)
OKLaboklab(33.97% 0.0119 -0.0686)
OKLCHoklch(33.97% 0.07 279.8)
XYZxyz(4.3382, 3.7758, 10.3957)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31335B #5B5931
analogous
#31485B #31335B #44315B
triadic
#31335B #5B3133 #335B31
tetradic
#31335B #5B3148 #5B5931 #315B44
square
#31335B #5B3148 #5B5931 #315B44
split-complementary
#31335B #5B4431 #485B31
monochromatic
#0B0B14 #1C1D33 #31335B #464983 #5E62A8

Accessibility & contrast

On white

11.96
#31335B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#31335B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31335B
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31335B#FFFFFF#000000##FFFFFF
##31335B1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25385D
Deuteranopia (green-blind)
#22355A
Tritanopia (blue-blind)
#243B42
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31335b;
/* rgb */ color: rgb(49, 51, 91);
/* oklch */ color: oklch(34.0% 0.070 279.8);
Tailwind
colors: {
  custom: {
    50: '#6b6a89',
    500: '#31335b',
    950: '#000000',
  },
}
SCSS
$custom: #31335b;
$custom-light: #6b6a89;
$custom-dark: #000000;
JSON
{
  "hex": "#31335b",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 91
  },
  "hsl": {
    "h": 237.143,
    "s": 30,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33966,
    "c": 0.0696,
    "h": 279.8
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#31335B
secondary
#8C8A5C
accent
#C162C6
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060B
muted
#7A7A7C

Preview Lab

Preview with #31335B

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

Preview Lab → · Contrast checker → · Palette generator →

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