#31357C#31357C

#31357C is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.8% C 0.118 H 276.5°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#31357C
RGBrgb(49, 53, 124)
HSLhsl(237, 43%, 34%)
HSVhsv(237, 60%, 49%)
CMYKcmyk(60.5%, 57.3%, 0%, 51.4%)
CIE-LABlab(25.73, 21.17, -41.06)
CIE-LCHlch(25.73, 46.19, 297.28°)
OKLaboklab(36.81% 0.0133 -0.1177)
OKLCHoklch(36.81% 0.118 276.5)
XYZxyz(6.1766, 4.6540, 19.6377)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31357C #7C7831
analogous
#315B7C #31357C #53317C
triadic
#31357C #7C3135 #357C31
tetradic
#31357C #7C315B #7C7831 #317C53
square
#31357C #7C315B #7C7831 #317C53
split-complementary
#31357C #7C5331 #5B7C31
monochromatic
#0E1024 #202250 #31357C #4248A8 #656AC2

Accessibility & contrast

On white

10.88
#31357C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#31357C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31357C
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31357C#FFFFFF#000000##FFFFFF
##31357C1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407E
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31357c;
/* rgb */ color: rgb(49, 53, 124);
/* oklch */ color: oklch(36.8% 0.118 276.5);
Tailwind
colors: {
  custom: {
    50: '#716ca2',
    500: '#31357c',
    950: '#000000',
  },
}
SCSS
$custom: #31357c;
$custom-light: #716ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#31357c",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 124
  },
  "hsl": {
    "h": 236.8,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36807,
    "c": 0.11846,
    "h": 276.5
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#31357C
secondary
#AAA65F
accent
#CC55D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31357C

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

Preview Lab → · Contrast checker → · Palette generator →

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