#31325D#31325D

#31325D is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.9% C 0.075 H 280.6°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#31325D
RGBrgb(49, 50, 93)
HSLhsl(239, 31%, 28%)
HSVhsv(239, 47%, 36%)
CMYKcmyk(47.3%, 46.2%, 0%, 63.5%)
CIE-LABlab(22.74, 12.32, -25.91)
CIE-LCHlch(22.74, 28.69, 295.43°)
OKLaboklab(33.87% 0.0138 -0.0732)
OKLCHoklch(33.87% 0.075 280.6)
XYZxyz(4.3824, 3.7243, 10.8417)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31325D #5D5C31
analogous
#31485D #31325D #46315D
triadic
#31325D #5D3132 #325D31
tetradic
#31325D #5D3148 #5D5C31 #315D46
square
#31325D #5D3148 #5D5C31 #315D46
split-complementary
#31325D #5D4631 #485D31
monochromatic
#0B0B14 #1C1C35 #31325D #464885 #5E60AA

Accessibility & contrast

On white

12.04
#31325D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#31325D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31325D
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31325D#FFFFFF#000000##FFFFFF
##31325D1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22385F
Deuteranopia (green-blind)
#1F355C
Tritanopia (blue-blind)
#233B43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31325d;
/* rgb */ color: rgb(49, 50, 93);
/* oklch */ color: oklch(33.9% 0.075 280.6);
Tailwind
colors: {
  custom: {
    50: '#6c698b',
    500: '#31325d',
    950: '#000000',
  },
}
SCSS
$custom: #31325d;
$custom-light: #6c698b;
$custom-dark: #000000;
JSON
{
  "hex": "#31325d",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 93
  },
  "hsl": {
    "h": 238.636,
    "s": 30.986,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3387,
    "c": 0.07452,
    "h": 280.6
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#31325D
secondary
#8E8D5C
accent
#C561C7
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #31325D

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

Preview Lab → · Contrast checker → · Palette generator →

#31325D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva