#31395F#31395F

#31395F is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.6% C 0.067 H 273.5°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#31395F
RGBrgb(49, 57, 95)
HSLhsl(230, 32%, 28%)
HSVhsv(230, 48%, 37%)
CMYKcmyk(48.4%, 40%, 0%, 62.7%)
CIE-LABlab(24.97, 8.16, -23.69)
CIE-LCHlch(24.97, 25.06, 289.01°)
OKLaboklab(35.62% 0.0041 -0.0667)
OKLCHoklch(35.62% 0.067 273.5)
XYZxyz(4.7947, 4.4052, 11.4219)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31395F #5F5731
analogous
#31505F #31395F #40315F
triadic
#31395F #5F3139 #395F31
tetradic
#31395F #5F3150 #5F5731 #315F40
square
#31395F #5F3150 #5F5731 #315F40
split-complementary
#31395F #5F4031 #505F31
monochromatic
#0A0C14 #1C2137 #31395F #465187 #5E6CAC

Accessibility & contrast

On white

11.16
#31395F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#31395F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31395F
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31395F#FFFFFF#000000##FFFFFF
##31395F1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3D61
Deuteranopia (green-blind)
#27395E
Tritanopia (blue-blind)
#214147
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31395f;
/* rgb */ color: rgb(49, 57, 95);
/* oklch */ color: oklch(35.6% 0.067 273.5);
Tailwind
colors: {
  custom: {
    50: '#6c6f8c',
    500: '#31395f',
    950: '#000000',
  },
}
SCSS
$custom: #31395f;
$custom-light: #6c6f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#31395f",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 95
  },
  "hsl": {
    "h": 229.565,
    "s": 31.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35616,
    "c": 0.06686,
    "h": 273.5
  },
  "luminance": 0.04405
}

Semantic roles & 50–950 ramp

primary
#31395F
secondary
#90875C
accent
#B660C8
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #31395F

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

Preview Lab → · Contrast checker → · Palette generator →

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