#31395C#31395C

#31395C is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.4% C 0.062 H 273.1°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#31395C
RGBrgb(49, 57, 92)
HSLhsl(229, 30%, 28%)
HSVhsv(229, 47%, 36%)
CMYKcmyk(46.7%, 38%, 0%, 63.9%)
CIE-LABlab(24.80, 7.14, -22.00)
CIE-LCHlch(24.80, 23.13, 287.99°)
OKLaboklab(35.43% 0.0033 -0.0618)
OKLCHoklch(35.43% 0.062 273.1)
XYZxyz(4.6609, 4.3517, 10.7175)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31395C #5C5431
analogous
#314E5C #31395C #3E315C
triadic
#31395C #5C3139 #395C31
tetradic
#31395C #5C314E #5C5431 #315C3E
square
#31395C #5C314E #5C5431 #315C3E
split-complementary
#31395C #5C3E31 #4E5C31
monochromatic
#0B0C14 #1C2034 #31395C #465284 #5E6CA9

Accessibility & contrast

On white

11.23
#31395C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31395C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31395C
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31395C#FFFFFF#000000##FFFFFF
##31395C1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3D5D
Deuteranopia (green-blind)
#29395B
Tritanopia (blue-blind)
#224046
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31395c;
/* rgb */ color: rgb(49, 57, 92);
/* oklch */ color: oklch(35.4% 0.062 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b6f8a',
    500: '#31395c',
    950: '#000000',
  },
}
SCSS
$custom: #31395c;
$custom-light: #6b6f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#31395c",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 92
  },
  "hsl": {
    "h": 228.837,
    "s": 30.496,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.06189,
    "h": 273.1
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#31395C
secondary
#8D845C
accent
#B461C7
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070B
muted
#7A7A7C

Preview Lab

Preview with #31395C

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

Preview Lab → · Contrast checker → · Palette generator →

#31395C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva