#31359B#31359B

#31359B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.162 H 274.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#31359B
RGBrgb(49, 53, 155)
HSLhsl(238, 52%, 40%)
HSVhsv(238, 68%, 61%)
CMYKcmyk(68.4%, 65.8%, 0%, 39.2%)
CIE-LABlab(28.29, 32.30, -56.10)
CIE-LCHlch(28.29, 64.74, 299.93°)
OKLaboklab(39.5% 0.0124 -0.1619)
OKLCHoklch(39.5% 0.162 274.4)
XYZxyz(8.4542, 5.5650, 31.6326)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31359B #9B9731
analogous
#316A9B #31359B #62319B
triadic
#31359B #9B3135 #359B31
tetradic
#31359B #9B316A #9B9731 #319B62
square
#31359B #9B316A #9B9731 #319B62
split-complementary
#31359B #9B6231 #6A9B31
monochromatic
#14153E #22256D #31359B #454AC4 #7377D3

Accessibility & contrast

On white

9.94
#31359B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31359B
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31359B#FFFFFF#000000##FFFFFF
##31359B1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #31359b;
/* rgb */ color: rgb(49, 53, 155);
/* oklch */ color: oklch(39.5% 0.162 274.4);
Tailwind
colors: {
  custom: {
    50: '#776cb9',
    500: '#31359b',
    950: '#000000',
  },
}
SCSS
$custom: #31359b;
$custom-light: #776cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31359b",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 155
  },
  "hsl": {
    "h": 237.736,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.39499,
    "c": 0.16239,
    "h": 274.4
  },
  "luminance": 0.05566
}

Semantic roles & 50–950 ramp

primary
#31359B
secondary
#BBB86D
accent
#D64CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31359B

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

Preview Lab → · Contrast checker → · Palette generator →

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