#31334C#31334C

#31334C is a dark, muted blue. Relative luminance 0.035; OKLCH L 33.1% C 0.044 H 280.2°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#31334C
RGBrgb(49, 51, 76)
HSLhsl(236, 22%, 25%)
HSVhsv(236, 36%, 30%)
CMYKcmyk(35.5%, 32.9%, 0%, 70.2%)
CIE-LABlab(22.10, 6.08, -15.65)
CIE-LCHlch(22.10, 16.79, 291.22°)
OKLaboklab(33.07% 0.0078 -0.0435)
OKLCHoklch(33.07% 0.044 280.2)
XYZxyz(3.7546, 3.5423, 7.3220)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31334C #4C4A31
analogous
#31414C #31334C #3D314C
triadic
#31334C #4C3133 #334C31
tetradic
#31334C #4C3141 #4C4A31 #314C3D
square
#31334C #4C3141 #4C4A31 #314C3D
split-complementary
#31334C #4C3D31 #414C31
monochromatic
#0C0C13 #191A27 #31334C #494C71 #616596

Accessibility & contrast

On white

12.29
#31334C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#31334C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31334C
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31334C#FFFFFF#000000##FFFFFF
##31334C1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C364D
Deuteranopia (green-blind)
#2A344B
Tritanopia (blue-blind)
#2A383C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31334c;
/* rgb */ color: rgb(49, 51, 76);
/* oklch */ color: oklch(33.1% 0.044 280.2);
Tailwind
colors: {
  custom: {
    50: '#6a6a7e',
    500: '#31334c',
    950: '#000000',
  },
}
SCSS
$custom: #31334c;
$custom-light: #6a6a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#31334c",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 76
  },
  "hsl": {
    "h": 235.556,
    "s": 21.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33068,
    "c": 0.04416,
    "h": 280.2
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#31334C
secondary
#7D7A5C
accent
#B86ABE
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #31334C

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

Preview Lab → · Contrast checker → · Palette generator →

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