#31358D#31358D

#31358D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.143 H 275.3°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#31358D
RGBrgb(49, 53, 141)
HSLhsl(237, 48%, 37%)
HSVhsv(237, 65%, 55%)
CMYKcmyk(65.2%, 62.4%, 0%, 44.7%)
CIE-LABlab(27.08, 27.30, -49.48)
CIE-LCHlch(27.08, 56.51, 298.88°)
OKLaboklab(38.24% 0.0133 -0.1425)
OKLCHoklch(38.24% 0.143 275.3)
XYZxyz(7.3459, 5.1216, 25.7956)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31358D #8D8931
analogous
#31638D #31358D #5B318D
triadic
#31358D #8D3135 #358D31
tetradic
#31358D #8D3163 #8D8931 #318D5B
square
#31358D #8D3163 #8D8931 #318D5B
split-complementary
#31358D #8D5B31 #638D31
monochromatic
#111332 #212460 #31358D #4146BA #6C71CC

Accessibility & contrast

On white

10.37
#31358D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#31358D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31358D
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31358D#FFFFFF#000000##FFFFFF
##31358D1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31358d;
/* rgb */ color: rgb(49, 53, 141);
/* oklch */ color: oklch(38.2% 0.143 275.3);
Tailwind
colors: {
  custom: {
    50: '#746caf',
    500: '#31358d',
    950: '#000000',
  },
}
SCSS
$custom: #31358d;
$custom-light: #746caf;
$custom-dark: #000000;
JSON
{
  "hex": "#31358d",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 141
  },
  "hsl": {
    "h": 237.391,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38237,
    "c": 0.1431,
    "h": 275.3
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31358D

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

Preview Lab → · Contrast checker → · Palette generator →

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