#31358F#31358F

#31358F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.146 H 275.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#31358F
RGBrgb(49, 53, 143)
HSLhsl(237, 49%, 38%)
HSVhsv(237, 66%, 56%)
CMYKcmyk(65.7%, 62.9%, 0%, 43.9%)
CIE-LABlab(27.25, 28.01, -50.44)
CIE-LCHlch(27.25, 57.70, 299.05°)
OKLaboklab(38.41% 0.0132 -0.1453)
OKLCHoklch(38.41% 0.146 275.2)
XYZxyz(7.4960, 5.1817, 26.5864)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31358F #8F8B31
analogous
#31648F #31358F #5C318F
triadic
#31358F #8F3135 #358F31
tetradic
#31358F #8F3164 #8F8B31 #318F5C
square
#31358F #8F3164 #8F8B31 #318F5C
split-complementary
#31358F #8F5C31 #648F31
monochromatic
#121334 #212461 #31358F #4146BD #6D71CD

Accessibility & contrast

On white

10.31
#31358F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#31358F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31358F
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31358F#FFFFFF#000000##FFFFFF
##31358F1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31358f;
/* rgb */ color: rgb(49, 53, 143);
/* oklch */ color: oklch(38.4% 0.146 275.2);
Tailwind
colors: {
  custom: {
    50: '#756cb1',
    500: '#31358f',
    950: '#000000',
  },
}
SCSS
$custom: #31358f;
$custom-light: #756cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#31358f",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 143
  },
  "hsl": {
    "h": 237.447,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38413,
    "c": 0.1459,
    "h": 275.2
  },
  "luminance": 0.05182
}

Semantic roles & 50–950 ramp

primary
#31358F
secondary
#B5B167
accent
#D34FD9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #31358F

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

Preview Lab → · Contrast checker → · Palette generator →

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