#313451#313451

#313451 is a dark, muted blue. Relative luminance 0.037; OKLCH L 33.6% C 0.051 H 278.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#313451
RGBrgb(49, 52, 81)
HSLhsl(234, 25%, 25%)
HSVhsv(234, 40%, 32%)
CMYKcmyk(39.5%, 35.8%, 0%, 68.2%)
CIE-LABlab(22.66, 6.96, -18.10)
CIE-LCHlch(22.66, 19.39, 291.05°)
OKLaboklab(33.59% 0.0078 -0.0505)
OKLCHoklch(33.59% 0.051 278.7)
XYZxyz(3.9794, 3.7029, 8.2880)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313451 #514E31
analogous
#314451 #313451 #3E3151
triadic
#313451 #513134 #345131
tetradic
#313451 #513144 #514E31 #31513E
square
#313451 #513144 #514E31 #31513E
split-complementary
#313451 #513E31 #445131
monochromatic
#0C0C13 #1A1C2B #313451 #484C77 #5F659D

Accessibility & contrast

On white

12.06
#313451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#313451 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313451
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313451#FFFFFF#000000##FFFFFF
##3134511.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3752
Deuteranopia (green-blind)
#293550
Tritanopia (blue-blind)
#283A3E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313451;
/* rgb */ color: rgb(49, 52, 81);
/* oklch */ color: oklch(33.6% 0.051 278.7);
Tailwind
colors: {
  custom: {
    50: '#6a6b82',
    500: '#313451',
    950: '#000000',
  },
}
SCSS
$custom: #313451;
$custom-light: #6a6b82;
$custom-dark: #000000;
JSON
{
  "hex": "#313451",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 81
  },
  "hsl": {
    "h": 234.375,
    "s": 24.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3359,
    "c": 0.05112,
    "h": 278.7
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#313451
secondary
#827E5C
accent
#B967C1
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #313451

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

Preview Lab → · Contrast checker → · Palette generator →

#313451 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva