#31359E#31359E

#31359E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.166 H 274.2°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#31359E
RGBrgb(49, 53, 158)
HSLhsl(238, 53%, 41%)
HSVhsv(238, 69%, 62%)
CMYKcmyk(69%, 66.5%, 0%, 38%)
CIE-LABlab(28.56, 33.36, -57.49)
CIE-LCHlch(28.56, 66.47, 300.13°)
OKLaboklab(39.78% 0.0122 -0.166)
OKLCHoklch(39.78% 0.166 274.2)
XYZxyz(8.7092, 5.6670, 32.9760)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31359E #9E9A31
analogous
#316B9E #31359E #63319E
triadic
#31359E #9E3135 #359E31
tetradic
#31359E #9E316B #9E9A31 #319E63
square
#31359E #9E316B #9E9A31 #319E63
split-complementary
#31359E #9E6331 #6B9E31
monochromatic
#141641 #23256F #31359E #464BC6 #7579D4

Accessibility & contrast

On white

9.84
#31359E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#31359E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31359E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31359E#FFFFFF#000000##FFFFFF
##31359E1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #31359e;
/* rgb */ color: rgb(49, 53, 158);
/* oklch */ color: oklch(39.8% 0.166 274.2);
Tailwind
colors: {
  custom: {
    50: '#786cbc',
    500: '#31359e',
    950: '#000000',
  },
}
SCSS
$custom: #31359e;
$custom-light: #786cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31359e",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 158
  },
  "hsl": {
    "h": 237.798,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39778,
    "c": 0.16642,
    "h": 274.2
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#31359E
secondary
#BCB96E
accent
#D74CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31359E

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

Preview Lab → · Contrast checker → · Palette generator →

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