#313458#313458

#313458 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.0% C 0.063 H 278.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#313458
RGBrgb(49, 52, 88)
HSLhsl(235, 28%, 27%)
HSVhsv(235, 44%, 35%)
CMYKcmyk(44.3%, 40.9%, 0%, 65.5%)
CIE-LABlab(23.04, 9.25, -22.14)
CIE-LCHlch(23.04, 23.99, 292.68°)
OKLaboklab(34.01% 0.0097 -0.0622)
OKLCHoklch(34.01% 0.063 278.9)
XYZxyz(4.2555, 3.8133, 9.7424)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313458 #585531
analogous
#314858 #313458 #423158
triadic
#313458 #583134 #345831
tetradic
#313458 #583148 #585531 #315842
square
#313458 #583148 #585531 #315842
split-complementary
#313458 #584231 #485831
monochromatic
#0B0C14 #1B1D31 #313458 #474B7F #5E64A5

Accessibility & contrast

On white

11.91
#313458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#313458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313458
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313458#FFFFFF#000000##FFFFFF
##3134581.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283859
Deuteranopia (green-blind)
#253657
Tritanopia (blue-blind)
#253B41
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313458;
/* rgb */ color: rgb(49, 52, 88);
/* oklch */ color: oklch(34.0% 0.063 278.9);
Tailwind
colors: {
  custom: {
    50: '#6b6b87',
    500: '#313458',
    950: '#000000',
  },
}
SCSS
$custom: #313458;
$custom-light: #6b6b87;
$custom-dark: #000000;
JSON
{
  "hex": "#313458",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 88
  },
  "hsl": {
    "h": 235.385,
    "s": 28.467,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34008,
    "c": 0.06298,
    "h": 278.9
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#313458
secondary
#89865C
accent
#BD63C5
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07060B
muted
#7A7A7C

Preview Lab

Preview with #313458

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

Preview Lab → · Contrast checker → · Palette generator →

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