#313885#313885

#313885 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.128 H 274.7°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#313885
RGBrgb(49, 56, 133)
HSLhsl(235, 46%, 36%)
HSVhsv(235, 63%, 52%)
CMYKcmyk(63.2%, 57.9%, 0%, 47.8%)
CIE-LABlab(27.23, 22.39, -44.27)
CIE-LCHlch(27.23, 49.62, 296.83°)
OKLaboklab(38.14% 0.0104 -0.1271)
OKLCHoklch(38.14% 0.128 274.7)
XYZxyz(6.9130, 5.1742, 22.8202)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313885 #857E31
analogous
#316285 #313885 #543185
triadic
#313885 #853138 #388531
tetradic
#313885 #853162 #857E31 #318554
square
#313885 #853162 #857E31 #318554
split-complementary
#313885 #855431 #628531
monochromatic
#10122C #212558 #313885 #414BB2 #6971C8

Accessibility & contrast

On white

10.32
#313885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#313885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313885
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313885#FFFFFF#000000##FFFFFF
##3138851.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313885;
/* rgb */ color: rgb(49, 56, 133);
/* oklch */ color: oklch(38.1% 0.128 274.7);
Tailwind
colors: {
  custom: {
    50: '#726ea9',
    500: '#313885',
    950: '#000000',
  },
}
SCSS
$custom: #313885;
$custom-light: #726ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#313885",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 133
  },
  "hsl": {
    "h": 235,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38144,
    "c": 0.12757,
    "h": 274.7
  },
  "luminance": 0.05175
}

Semantic roles & 50–950 ramp

primary
#313885
secondary
#AFA963
accent
#CB52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313885

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

Preview Lab → · Contrast checker → · Palette generator →

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