#31358A#31358A

#31358A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.0% C 0.139 H 275.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#31358A
RGBrgb(49, 53, 138)
HSLhsl(237, 48%, 37%)
HSVhsv(237, 64%, 54%)
CMYKcmyk(64.5%, 61.6%, 0%, 45.9%)
CIE-LABlab(26.83, 26.22, -48.03)
CIE-LCHlch(26.83, 54.72, 298.63°)
OKLaboklab(37.98% 0.0134 -0.1382)
OKLCHoklch(37.98% 0.139 275.5)
XYZxyz(7.1257, 5.0336, 24.6359)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31358A #8A8631
analogous
#31628A #31358A #5A318A
triadic
#31358A #8A3135 #358A31
tetradic
#31358A #8A3162 #8A8631 #318A5A
square
#31358A #8A3162 #8A8631 #318A5A
split-complementary
#31358A #8A5A31 #628A31
monochromatic
#111230 #21245D #31358A #4146B7 #6B6FCA

Accessibility & contrast

On white

10.46
#31358A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31358A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31358A#FFFFFF#000000##FFFFFF
##31358A1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31358a;
/* rgb */ color: rgb(49, 53, 138);
/* oklch */ color: oklch(38.0% 0.139 275.5);
Tailwind
colors: {
  custom: {
    50: '#746cad',
    500: '#31358a',
    950: '#000000',
  },
}
SCSS
$custom: #31358a;
$custom-light: #746cad;
$custom-dark: #000000;
JSON
{
  "hex": "#31358a",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 138
  },
  "hsl": {
    "h": 237.303,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37976,
    "c": 0.13885,
    "h": 275.5
  },
  "luminance": 0.05034
}

Semantic roles & 50–950 ramp

primary
#31358A
secondary
#B2AE65
accent
#D151D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31358A

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

Preview Lab → · Contrast checker → · Palette generator →

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