#31359A#31359A

#31359A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.4% C 0.161 H 274.5°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#31359A
RGBrgb(49, 53, 154)
HSLhsl(238, 52%, 40%)
HSVhsv(238, 68%, 60%)
CMYKcmyk(68.2%, 65.6%, 0%, 39.6%)
CIE-LABlab(28.20, 31.94, -55.64)
CIE-LCHlch(28.20, 64.16, 299.86°)
OKLaboklab(39.41% 0.0125 -0.1605)
OKLCHoklch(39.41% 0.161 274.5)
XYZxyz(8.3705, 5.5315, 31.1922)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31359A #9A9631
analogous
#316A9A #31359A #61319A
triadic
#31359A #9A3135 #359A31
tetradic
#31359A #9A316A #9A9631 #319A61
square
#31359A #9A316A #9A9631 #319A61
split-complementary
#31359A #9A6131 #6A9A31
monochromatic
#13153D #22256C #31359A #4549C4 #7377D2

Accessibility & contrast

On white

9.97
#31359A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#31359A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31359A
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31359A#FFFFFF#000000##FFFFFF
##31359A1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#003E98
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #31359a;
/* rgb */ color: rgb(49, 53, 154);
/* oklch */ color: oklch(39.4% 0.161 274.5);
Tailwind
colors: {
  custom: {
    50: '#776cb9',
    500: '#31359a',
    950: '#000000',
  },
}
SCSS
$custom: #31359a;
$custom-light: #776cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31359a",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 154
  },
  "hsl": {
    "h": 237.714,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39406,
    "c": 0.16104,
    "h": 274.5
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#31359A
secondary
#BAB76C
accent
#D64DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #31359A

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

Preview Lab → · Contrast checker → · Palette generator →

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