#31334F#31334F

#31334F is a dark, muted blue. Relative luminance 0.036; OKLCH L 33.2% C 0.049 H 280.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#31334F
RGBrgb(49, 51, 79)
HSLhsl(236, 23%, 25%)
HSVhsv(236, 38%, 31%)
CMYKcmyk(38%, 35.4%, 0%, 69%)
CIE-LABlab(22.25, 7.02, -17.41)
CIE-LCHlch(22.25, 18.77, 291.95°)
OKLaboklab(33.24% 0.0087 -0.0486)
OKLCHoklch(33.24% 0.049 280.2)
XYZxyz(3.8613, 3.5850, 7.8841)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31334F #4F4D31
analogous
#31424F #31334F #3E314F
triadic
#31334F #4F3133 #334F31
tetradic
#31334F #4F3142 #4F4D31 #314F3E
square
#31334F #4F3142 #4F4D31 #314F3E
split-complementary
#31334F #4F3E31 #424F31
monochromatic
#0C0C13 #1A1B29 #31334F #484B75 #60649B

Accessibility & contrast

On white

12.23
#31334F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#31334F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31334F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31334F#FFFFFF#000000##FFFFFF
##31334F1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3650
Deuteranopia (green-blind)
#29344E
Tritanopia (blue-blind)
#29383D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31334f;
/* rgb */ color: rgb(49, 51, 79);
/* oklch */ color: oklch(33.2% 0.049 280.2);
Tailwind
colors: {
  custom: {
    50: '#6a6a80',
    500: '#31334f',
    950: '#000000',
  },
}
SCSS
$custom: #31334f;
$custom-light: #6a6a80;
$custom-dark: #000000;
JSON
{
  "hex": "#31334f",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 79
  },
  "hsl": {
    "h": 236,
    "s": 23.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33236,
    "c": 0.04933,
    "h": 280.2
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#31334F
secondary
#807E5C
accent
#BA68C0
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #31334F

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

Preview Lab → · Contrast checker → · Palette generator →

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