#313888#313888

#313888 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.132 H 274.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#313888
RGBrgb(49, 56, 136)
HSLhsl(235, 47%, 36%)
HSVhsv(235, 64%, 53%)
CMYKcmyk(64%, 58.8%, 0%, 46.7%)
CIE-LABlab(27.46, 23.49, -45.76)
CIE-LCHlch(27.46, 51.44, 297.17°)
OKLaboklab(38.39% 0.0105 -0.1315)
OKLCHoklch(38.39% 0.132 274.6)
XYZxyz(7.1233, 5.2583, 23.9274)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313888 #888131
analogous
#316488 #313888 #563188
triadic
#313888 #883138 #388831
tetradic
#313888 #883164 #888131 #318856
square
#313888 #883164 #888131 #318856
split-complementary
#313888 #885631 #648831
monochromatic
#11132E #21255B #313888 #414BB5 #6A72C9

Accessibility & contrast

On white

10.23
#313888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#313888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313888
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313888#FFFFFF#000000##FFFFFF
##3138881.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313888;
/* rgb */ color: rgb(49, 56, 136);
/* oklch */ color: oklch(38.4% 0.132 274.6);
Tailwind
colors: {
  custom: {
    50: '#736eab',
    500: '#313888',
    950: '#000000',
  },
}
SCSS
$custom: #313888;
$custom-light: #736eab;
$custom-dark: #000000;
JSON
{
  "hex": "#313888",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 136
  },
  "hsl": {
    "h": 235.172,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38391,
    "c": 0.13194,
    "h": 274.6
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#313888
secondary
#B1AB64
accent
#CC51D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313888

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

Preview Lab → · Contrast checker → · Palette generator →

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