#31385F#31385F

#31385F is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.4% C 0.068 H 274.7°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#31385F
RGBrgb(49, 56, 95)
HSLhsl(231, 32%, 28%)
HSVhsv(231, 48%, 37%)
CMYKcmyk(48.4%, 41.1%, 0%, 62.7%)
CIE-LABlab(24.66, 8.85, -24.17)
CIE-LCHlch(24.66, 25.74, 290.10°)
OKLaboklab(35.38% 0.0056 -0.0681)
OKLCHoklch(35.38% 0.068 274.7)
XYZxyz(4.7457, 4.3073, 11.4056)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31385F #5F5831
analogous
#314F5F #31385F #41315F
triadic
#31385F #5F3138 #385F31
tetradic
#31385F #5F314F #5F5831 #315F41
square
#31385F #5F314F #5F5831 #315F41
split-complementary
#31385F #5F4131 #4F5F31
monochromatic
#0A0C14 #1C2037 #31385F #465087 #5E6AAC

Accessibility & contrast

On white

11.28
#31385F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#31385F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31385F
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31385F#FFFFFF#000000##FFFFFF
##31385F1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3D61
Deuteranopia (green-blind)
#26395E
Tritanopia (blue-blind)
#214047
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31385f;
/* rgb */ color: rgb(49, 56, 95);
/* oklch */ color: oklch(35.4% 0.068 274.7);
Tailwind
colors: {
  custom: {
    50: '#6c6e8c',
    500: '#31385f',
    950: '#000000',
  },
}
SCSS
$custom: #31385f;
$custom-light: #6c6e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#31385f",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 95
  },
  "hsl": {
    "h": 230.87,
    "s": 31.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35381,
    "c": 0.06837,
    "h": 274.7
  },
  "luminance": 0.04308
}

Semantic roles & 50–950 ramp

primary
#31385F
secondary
#90885C
accent
#B860C8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #31385F

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

Preview Lab → · Contrast checker → · Palette generator →

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