#31357F#31357F

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

Color values

HEX#31357F
RGBrgb(49, 53, 127)
HSLhsl(237, 44%, 35%)
HSVhsv(237, 61%, 50%)
CMYKcmyk(61.4%, 58.3%, 0%, 50.2%)
CIE-LABlab(25.95, 22.25, -42.58)
CIE-LCHlch(25.95, 48.04, 297.59°)
OKLaboklab(37.05% 0.0134 -0.1222)
OKLCHoklch(37.05% 0.123 276.3)
XYZxyz(6.3693, 4.7310, 20.6521)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31357F #7F7B31
analogous
#315C7F #31357F #54317F
triadic
#31357F #7F3135 #357F31
tetradic
#31357F #7F315C #7F7B31 #317F54
square
#31357F #7F315C #7F7B31 #317F54
split-complementary
#31357F #7F5431 #5C7F31
monochromatic
#0F1027 #202353 #31357F #4247AB #666BC4

Accessibility & contrast

On white

10.79
#31357F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#31357F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31357F
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31357F#FFFFFF#000000##FFFFFF
##31357F1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31357f;
/* rgb */ color: rgb(49, 53, 127);
/* oklch */ color: oklch(37.0% 0.123 276.3);
Tailwind
colors: {
  custom: {
    50: '#716ca5',
    500: '#31357f',
    950: '#000000',
  },
}
SCSS
$custom: #31357f;
$custom-light: #716ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#31357f",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 127
  },
  "hsl": {
    "h": 236.923,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3705,
    "c": 0.12291,
    "h": 276.3
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31357F

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

Preview Lab → · Contrast checker → · Palette generator →

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