#313558#313558

#313558 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.2% C 0.061 H 277.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#313558
RGBrgb(49, 53, 88)
HSLhsl(234, 28%, 27%)
HSVhsv(234, 44%, 35%)
CMYKcmyk(44.3%, 39.8%, 0%, 65.5%)
CIE-LABlab(23.35, 8.56, -21.65)
CIE-LCHlch(23.35, 23.28, 291.56°)
OKLaboklab(34.24% 0.0082 -0.0608)
OKLCHoklch(34.24% 0.061 277.7)
XYZxyz(4.3007, 3.9036, 9.7575)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313558 #585431
analogous
#314958 #313558 #413158
triadic
#313558 #583135 #355831
tetradic
#313558 #583149 #585431 #315841
square
#313558 #583149 #585431 #315841
split-complementary
#313558 #584131 #495831
monochromatic
#0B0C14 #1B1D31 #313558 #474D7F #5E65A5

Accessibility & contrast

On white

11.79
#313558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#313558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313558
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313558#FFFFFF#000000##FFFFFF
##3135581.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293959
Deuteranopia (green-blind)
#263657
Tritanopia (blue-blind)
#253C42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313558;
/* rgb */ color: rgb(49, 53, 88);
/* oklch */ color: oklch(34.2% 0.061 277.7);
Tailwind
colors: {
  custom: {
    50: '#6b6c87',
    500: '#313558',
    950: '#000000',
  },
}
SCSS
$custom: #313558;
$custom-light: #6b6c87;
$custom-dark: #000000;
JSON
{
  "hex": "#313558",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 88
  },
  "hsl": {
    "h": 233.846,
    "s": 28.467,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34243,
    "c": 0.06138,
    "h": 277.7
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#313558
secondary
#89855C
accent
#BB63C5
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07060B
muted
#7A7A7C

Preview Lab

Preview with #313558

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

Preview Lab → · Contrast checker → · Palette generator →

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