#31357D#31357D

#31357D is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.9% C 0.120 H 276.4°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#31357D
RGBrgb(49, 53, 125)
HSLhsl(237, 44%, 34%)
HSVhsv(237, 61%, 49%)
CMYKcmyk(60.8%, 57.6%, 0%, 51%)
CIE-LABlab(25.80, 21.53, -41.57)
CIE-LCHlch(25.80, 46.81, 297.38°)
OKLaboklab(36.89% 0.0134 -0.1192)
OKLCHoklch(36.89% 0.12 276.4)
XYZxyz(6.2402, 4.6794, 19.9724)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31357D #7D7931
analogous
#315B7D #31357D #53317D
triadic
#31357D #7D3135 #357D31
tetradic
#31357D #7D315B #7D7931 #317D53
square
#31357D #7D315B #7D7931 #317D53
split-complementary
#31357D #7D5331 #5B7D31
monochromatic
#0F1025 #202251 #31357D #4248A9 #666AC3

Accessibility & contrast

On white

10.85
#31357D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31357D
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31357D#FFFFFF#000000##FFFFFF
##31357D1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31357d;
/* rgb */ color: rgb(49, 53, 125);
/* oklch */ color: oklch(36.9% 0.120 276.4);
Tailwind
colors: {
  custom: {
    50: '#716ca3',
    500: '#31357d',
    950: '#000000',
  },
}
SCSS
$custom: #31357d;
$custom-light: #716ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#31357d",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 125
  },
  "hsl": {
    "h": 236.842,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36888,
    "c": 0.11996,
    "h": 276.4
  },
  "luminance": 0.0468
}

Semantic roles & 50–950 ramp

primary
#31357D
secondary
#AAA660
accent
#CD54D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31357D

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

Preview Lab → · Contrast checker → · Palette generator →

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