#313259#313259

#313259 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.6% C 0.068 H 281.0°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#313259
RGBrgb(49, 50, 89)
HSLhsl(239, 29%, 27%)
HSVhsv(239, 45%, 35%)
CMYKcmyk(44.9%, 43.8%, 0%, 65.1%)
CIE-LABlab(22.50, 10.97, -23.66)
CIE-LCHlch(22.50, 26.08, 294.88°)
OKLaboklab(33.61% 0.0129 -0.0667)
OKLCHoklch(33.61% 0.068 281)
XYZxyz(4.2099, 3.6553, 9.9330)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313259 #595831
analogous
#314659 #313259 #443159
triadic
#313259 #593132 #325931
tetradic
#313259 #593146 #595831 #315944
square
#313259 #593146 #595831 #315944
split-complementary
#313259 #594431 #465931
monochromatic
#0B0B14 #1B1C32 #313259 #474880 #5E60A6

Accessibility & contrast

On white

12.13
#313259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#313259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313259
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313259#FFFFFF#000000##FFFFFF
##3132591.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24375B
Deuteranopia (green-blind)
#223458
Tritanopia (blue-blind)
#253A41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313259;
/* rgb */ color: rgb(49, 50, 89);
/* oklch */ color: oklch(33.6% 0.068 281.0);
Tailwind
colors: {
  custom: {
    50: '#6b6988',
    500: '#313259',
    950: '#000000',
  },
}
SCSS
$custom: #313259;
$custom-light: #6b6988;
$custom-dark: #000000;
JSON
{
  "hex": "#313259",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 89
  },
  "hsl": {
    "h": 238.5,
    "s": 28.986,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33608,
    "c": 0.06791,
    "h": 281
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#313259
secondary
#8A895C
accent
#C363C5
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07060B
muted
#7A7A7C

Preview Lab

Preview with #313259

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

Preview Lab → · Contrast checker → · Palette generator →

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