#31344F#31344F

#31344F is a dark, muted blue. Relative luminance 0.037; OKLCH L 33.5% C 0.048 H 278.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#31344F
RGBrgb(49, 52, 79)
HSLhsl(234, 23%, 25%)
HSVhsv(234, 38%, 31%)
CMYKcmyk(38%, 34.2%, 0%, 69%)
CIE-LABlab(22.56, 6.33, -16.93)
CIE-LCHlch(22.56, 18.07, 290.50°)
OKLaboklab(33.48% 0.0071 -0.0472)
OKLCHoklch(33.48% 0.048 278.6)
XYZxyz(3.9055, 3.6733, 7.8989)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31344F #4F4C31
analogous
#31434F #31344F #3D314F
triadic
#31344F #4F3134 #344F31
tetradic
#31344F #4F3143 #4F4C31 #314F3D
square
#31344F #4F3143 #4F4C31 #314F3D
split-complementary
#31344F #4F3D31 #434F31
monochromatic
#0C0C13 #1A1B29 #31344F #484D75 #60669B

Accessibility & contrast

On white

12.11
#31344F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#31344F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31344F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31344F#FFFFFF#000000##FFFFFF
##31344F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3750
Deuteranopia (green-blind)
#2A354E
Tritanopia (blue-blind)
#29393E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31344f;
/* rgb */ color: rgb(49, 52, 79);
/* oklch */ color: oklch(33.5% 0.048 278.6);
Tailwind
colors: {
  custom: {
    50: '#6a6b80',
    500: '#31344f',
    950: '#000000',
  },
}
SCSS
$custom: #31344f;
$custom-light: #6a6b80;
$custom-dark: #000000;
JSON
{
  "hex": "#31344f",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 79
  },
  "hsl": {
    "h": 234,
    "s": 23.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33477,
    "c": 0.0477,
    "h": 278.6
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#31344F
secondary
#807C5C
accent
#B768C0
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #31344F

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

Preview Lab → · Contrast checker → · Palette generator →

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