#31346B#31346B

#31346B is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.3% C 0.094 H 278.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#31346B
RGBrgb(49, 52, 107)
HSLhsl(237, 37%, 31%)
HSVhsv(237, 54%, 42%)
CMYKcmyk(54.2%, 51.4%, 0%, 58%)
CIE-LABlab(24.23, 15.78, -32.64)
CIE-LCHlch(24.23, 36.25, 295.81°)
OKLaboklab(35.29% 0.0132 -0.093)
OKLCHoklch(35.29% 0.094 278.1)
XYZxyz(5.1476, 4.1702, 14.4407)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31346B #6B6831
analogous
#31516B #31346B #4B316B
triadic
#31346B #6B3134 #346B31
tetradic
#31346B #6B3151 #6B6831 #316B4B
square
#31346B #6B3151 #6B6831 #316B4B
split-complementary
#31346B #6B4B31 #516B31
monochromatic
#0B0B17 #1E2041 #31346B #444895 #6065B6

Accessibility & contrast

On white

11.45
#31346B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#31346B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31346B
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31346B#FFFFFF#000000##FFFFFF
##31346B1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3C6D
Deuteranopia (green-blind)
#15376A
Tritanopia (blue-blind)
#19404A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31346b;
/* rgb */ color: rgb(49, 52, 107);
/* oklch */ color: oklch(35.3% 0.094 278.1);
Tailwind
colors: {
  custom: {
    50: '#6e6b96',
    500: '#31346b',
    950: '#000000',
  },
}
SCSS
$custom: #31346b;
$custom-light: #6e6b96;
$custom-dark: #000000;
JSON
{
  "hex": "#31346b",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 107
  },
  "hsl": {
    "h": 236.897,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35291,
    "c": 0.09389,
    "h": 278.1
  },
  "luminance": 0.0417
}

Semantic roles & 50–950 ramp

primary
#31346B
secondary
#9C995C
accent
#C75BCD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #31346B

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

Preview Lab → · Contrast checker → · Palette generator →

#31346B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva