#31358B#31358B

#31358B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.140 H 275.5°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#31358B
RGBrgb(49, 53, 139)
HSLhsl(237, 48%, 37%)
HSVhsv(237, 65%, 55%)
CMYKcmyk(64.7%, 61.9%, 0%, 45.5%)
CIE-LABlab(26.91, 26.58, -48.51)
CIE-LCHlch(26.91, 55.31, 298.72°)
OKLaboklab(38.06% 0.0134 -0.1396)
OKLCHoklch(38.06% 0.14 275.5)
XYZxyz(7.1984, 5.0627, 25.0189)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31358B #8B8731
analogous
#31628B #31358B #5A318B
triadic
#31358B #8B3135 #358B31
tetradic
#31358B #8B3162 #8B8731 #318B5A
square
#31358B #8B3162 #8B8731 #318B5A
split-complementary
#31358B #8B5A31 #628B31
monochromatic
#111231 #21245E #31358B #4146B8 #6B70CB

Accessibility & contrast

On white

10.43
#31358B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#31358B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31358B
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31358B#FFFFFF#000000##FFFFFF
##31358B1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31358b;
/* rgb */ color: rgb(49, 53, 139);
/* oklch */ color: oklch(38.1% 0.140 275.5);
Tailwind
colors: {
  custom: {
    50: '#746cae',
    500: '#31358b',
    950: '#000000',
  },
}
SCSS
$custom: #31358b;
$custom-light: #746cae;
$custom-dark: #000000;
JSON
{
  "hex": "#31358b",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 139
  },
  "hsl": {
    "h": 237.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38063,
    "c": 0.14027,
    "h": 275.5
  },
  "luminance": 0.05063
}

Semantic roles & 50–950 ramp

primary
#31358B
secondary
#B2AF65
accent
#D150D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31358B

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

Preview Lab → · Contrast checker → · Palette generator →

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