#31358E#31358E

#31358E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.144 H 275.3°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#31358E
RGBrgb(49, 53, 142)
HSLhsl(237, 49%, 37%)
HSVhsv(237, 65%, 56%)
CMYKcmyk(65.5%, 62.7%, 0%, 44.3%)
CIE-LABlab(27.16, 27.66, -49.96)
CIE-LCHlch(27.16, 57.11, 298.97°)
OKLaboklab(38.32% 0.0133 -0.1439)
OKLCHoklch(38.32% 0.145 275.3)
XYZxyz(7.4206, 5.1515, 26.1892)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31358E #8E8A31
analogous
#31648E #31358E #5B318E
triadic
#31358E #8E3135 #358E31
tetradic
#31358E #8E3164 #8E8A31 #318E5B
square
#31358E #8E3164 #8E8A31 #318E5B
split-complementary
#31358E #8E5B31 #648E31
monochromatic
#121333 #212461 #31358E #4146BB #6D71CD

Accessibility & contrast

On white

10.34
#31358E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#31358E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31358E
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31358E#FFFFFF#000000##FFFFFF
##31358E1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31358e;
/* rgb */ color: rgb(49, 53, 142);
/* oklch */ color: oklch(38.3% 0.144 275.3);
Tailwind
colors: {
  custom: {
    50: '#746cb0',
    500: '#31358e',
    950: '#000000',
  },
}
SCSS
$custom: #31358e;
$custom-light: #746cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#31358e",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 142
  },
  "hsl": {
    "h": 237.419,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38325,
    "c": 0.1445,
    "h": 275.3
  },
  "luminance": 0.05152
}

Semantic roles & 50–950 ramp

primary
#31358E
secondary
#B4B167
accent
#D250D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31358E

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

Preview Lab → · Contrast checker → · Palette generator →

#31358E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva