#31335A#31335A

#31335A is a dark, moderate blue. Relative luminance 0.038; OKLCH L 33.9% C 0.068 H 279.9°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#31335A
RGBrgb(49, 51, 90)
HSLhsl(237, 29%, 27%)
HSVhsv(237, 46%, 35%)
CMYKcmyk(45.6%, 43.3%, 0%, 64.7%)
CIE-LABlab(22.86, 10.61, -23.75)
CIE-LCHlch(22.86, 26.01, 294.08°)
OKLaboklab(33.9% 0.0117 -0.0669)
OKLCHoklch(33.9% 0.068 279.9)
XYZxyz(4.2954, 3.7586, 10.1700)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31335A #5A5831
analogous
#31485A #31335A #44315A
triadic
#31335A #5A3133 #335A31
tetradic
#31335A #5A3148 #5A5831 #315A44
square
#31335A #5A3148 #5A5831 #315A44
split-complementary
#31335A #5A4431 #485A31
monochromatic
#0B0B14 #1B1D32 #31335A #474982 #5E62A7

Accessibility & contrast

On white

11.99
#31335A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#31335A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31335A
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31335A#FFFFFF#000000##FFFFFF
##31335A1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25385C
Deuteranopia (green-blind)
#233559
Tritanopia (blue-blind)
#243B42
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31335a;
/* rgb */ color: rgb(49, 51, 90);
/* oklch */ color: oklch(33.9% 0.068 279.9);
Tailwind
colors: {
  custom: {
    50: '#6b6a89',
    500: '#31335a',
    950: '#000000',
  },
}
SCSS
$custom: #31335a;
$custom-light: #6b6a89;
$custom-dark: #000000;
JSON
{
  "hex": "#31335a",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 90
  },
  "hsl": {
    "h": 237.073,
    "s": 29.496,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33902,
    "c": 0.06794,
    "h": 279.9
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31335A

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

Preview Lab → · Contrast checker → · Palette generator →

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