#313459#313459

#313459 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.065 H 278.8°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#313459
RGBrgb(49, 52, 89)
HSLhsl(236, 29%, 27%)
HSVhsv(236, 45%, 35%)
CMYKcmyk(44.9%, 41.6%, 0%, 65.1%)
CIE-LABlab(23.10, 9.58, -22.71)
CIE-LCHlch(23.10, 24.65, 292.88°)
OKLaboklab(34.07% 0.0099 -0.0639)
OKLCHoklch(34.07% 0.065 278.8)
XYZxyz(4.2973, 3.8300, 9.9621)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313459 #595631
analogous
#314859 #313459 #423159
triadic
#313459 #593134 #345931
tetradic
#313459 #593148 #595631 #315942
square
#313459 #593148 #595631 #315942
split-complementary
#313459 #594231 #485931
monochromatic
#0B0C14 #1B1D32 #313459 #474B80 #5E63A6

Accessibility & contrast

On white

11.89
#313459 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#313459 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313459
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313459#FFFFFF#000000##FFFFFF
##3134591.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27395A
Deuteranopia (green-blind)
#243658
Tritanopia (blue-blind)
#243B42
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313459;
/* rgb */ color: rgb(49, 52, 89);
/* oklch */ color: oklch(34.1% 0.065 278.8);
Tailwind
colors: {
  custom: {
    50: '#6b6b88',
    500: '#313459',
    950: '#000000',
  },
}
SCSS
$custom: #313459;
$custom-light: #6b6b88;
$custom-dark: #000000;
JSON
{
  "hex": "#313459",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 89
  },
  "hsl": {
    "h": 235.5,
    "s": 28.986,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3407,
    "c": 0.06465,
    "h": 278.8
  },
  "luminance": 0.0383
}

Semantic roles & 50–950 ramp

primary
#313459
secondary
#8A875C
accent
#BE63C5
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07060B
muted
#7A7A7C

Preview Lab

Preview with #313459

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

Preview Lab → · Contrast checker → · Palette generator →

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