#31357B#31357B

#31357B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.7% C 0.117 H 276.5°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#31357B
RGBrgb(49, 53, 123)
HSLhsl(237, 43%, 34%)
HSVhsv(237, 60%, 48%)
CMYKcmyk(60.2%, 56.9%, 0%, 51.8%)
CIE-LABlab(25.65, 20.81, -40.55)
CIE-LCHlch(25.65, 45.58, 297.17°)
OKLaboklab(36.73% 0.0133 -0.1162)
OKLCHoklch(36.73% 0.117 276.5)
XYZxyz(6.1137, 4.6288, 19.3063)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31357B #7B7731
analogous
#315A7B #31357B #52317B
triadic
#31357B #7B3135 #357B31
tetradic
#31357B #7B315A #7B7731 #317B52
square
#31357B #7B315A #7B7731 #317B52
split-complementary
#31357B #7B5231 #5A7B31
monochromatic
#0E0F23 #20224F #31357B #4248A7 #656AC2

Accessibility & contrast

On white

10.90
#31357B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31357B
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31357B#FFFFFF#000000##FFFFFF
##31357B1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05407D
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#014552
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31357b;
/* rgb */ color: rgb(49, 53, 123);
/* oklch */ color: oklch(36.7% 0.117 276.5);
Tailwind
colors: {
  custom: {
    50: '#716ca2',
    500: '#31357b',
    950: '#000000',
  },
}
SCSS
$custom: #31357b;
$custom-light: #716ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#31357b",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 123
  },
  "hsl": {
    "h": 236.757,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36727,
    "c": 0.11697,
    "h": 276.5
  },
  "luminance": 0.04629
}

Semantic roles & 50–950 ramp

primary
#31357B
secondary
#A9A55F
accent
#CC55D3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31357B

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

Preview Lab → · Contrast checker → · Palette generator →

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