#31357E#31357E

#31357E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.121 H 276.3°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#31357E
RGBrgb(49, 53, 126)
HSLhsl(237, 44%, 34%)
HSVhsv(237, 61%, 49%)
CMYKcmyk(61.1%, 57.9%, 0%, 50.6%)
CIE-LABlab(25.88, 21.89, -42.07)
CIE-LCHlch(25.88, 47.43, 297.49°)
OKLaboklab(36.97% 0.0134 -0.1207)
OKLCHoklch(36.97% 0.121 276.3)
XYZxyz(6.3044, 4.7051, 20.3106)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31357E #7E7A31
analogous
#315C7E #31357E #54317E
triadic
#31357E #7E3135 #357E31
tetradic
#31357E #7E315C #7E7A31 #317E54
square
#31357E #7E315C #7E7A31 #317E54
split-complementary
#31357E #7E5431 #5C7E31
monochromatic
#0F1026 #202252 #31357E #4248AA #666BC3

Accessibility & contrast

On white

10.82
#31357E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#31357E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31357E
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31357E#FFFFFF#000000##FFFFFF
##31357E1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004180
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31357e;
/* rgb */ color: rgb(49, 53, 126);
/* oklch */ color: oklch(37.0% 0.121 276.3);
Tailwind
colors: {
  custom: {
    50: '#716ca4',
    500: '#31357e',
    950: '#000000',
  },
}
SCSS
$custom: #31357e;
$custom-light: #716ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#31357e",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 126
  },
  "hsl": {
    "h": 236.883,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36969,
    "c": 0.12144,
    "h": 276.3
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#31357E
secondary
#ABA760
accent
#CD54D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31357E

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

Preview Lab → · Contrast checker → · Palette generator →

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