#31359F#31359F

#31359F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.9% C 0.168 H 274.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#31359F
RGBrgb(49, 53, 159)
HSLhsl(238, 53%, 41%)
HSVhsv(238, 69%, 62%)
CMYKcmyk(69.2%, 66.7%, 0%, 37.6%)
CIE-LABlab(28.65, 33.72, -57.95)
CIE-LCHlch(28.65, 67.04, 300.19°)
OKLaboklab(39.87% 0.0121 -0.1673)
OKLCHoklch(39.87% 0.168 274.1)
XYZxyz(8.7957, 5.7016, 33.4311)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31359F #9F9B31
analogous
#316C9F #31359F #64319F
triadic
#31359F #9F3135 #359F31
tetradic
#31359F #9F316C #9F9B31 #319F64
square
#31359F #9F316C #9F9B31 #319F64
split-complementary
#31359F #9F6431 #6C9F31
monochromatic
#141641 #232570 #31359F #474CC6 #7679D5

Accessibility & contrast

On white

9.81
#31359F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#31359F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31359F
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31359F#FFFFFF#000000##FFFFFF
##31359F1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#005165
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #31359f;
/* rgb */ color: rgb(49, 53, 159);
/* oklch */ color: oklch(39.9% 0.168 274.1);
Tailwind
colors: {
  custom: {
    50: '#786cbc',
    500: '#31359f',
    950: '#000000',
  },
}
SCSS
$custom: #31359f;
$custom-light: #786cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31359f",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 159
  },
  "hsl": {
    "h": 237.818,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39871,
    "c": 0.16776,
    "h": 274.1
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#31359F
secondary
#BDBA6F
accent
#D74CDC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31359F

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

Preview Lab → · Contrast checker → · Palette generator →

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