#31399F#31399F

#31399F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.163 H 273.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#31399F
RGBrgb(49, 57, 159)
HSLhsl(236, 53%, 41%)
HSVhsv(236, 69%, 62%)
CMYKcmyk(69.2%, 64.2%, 0%, 37.6%)
CIE-LABlab(29.62, 31.15, -56.36)
CIE-LCHlch(29.62, 64.39, 298.93°)
OKLaboklab(40.58% 0.0091 -0.1626)
OKLCHoklch(40.58% 0.163 273.2)
XYZxyz(8.9857, 6.0816, 33.4945)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31399F #9F9731
analogous
#31709F #31399F #60319F
triadic
#31399F #9F3139 #399F31
tetradic
#31399F #9F3170 #9F9731 #319F60
square
#31399F #9F3170 #9F9731 #319F60
split-complementary
#31399F #9F6031 #709F31
monochromatic
#141741 #232870 #31399F #4750C6 #767DD5

Accessibility & contrast

On white

9.47
#31399F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#31399F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31399F
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31399F#FFFFFF#000000##FFFFFF
##31399F1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #31399f;
/* rgb */ color: rgb(49, 57, 159);
/* oklch */ color: oklch(40.6% 0.163 273.2);
Tailwind
colors: {
  custom: {
    50: '#786fbc',
    500: '#31399f',
    950: '#000000',
  },
}
SCSS
$custom: #31399f;
$custom-light: #786fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31399f",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 235.636,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40581,
    "c": 0.16289,
    "h": 273.2
  },
  "luminance": 0.06082
}

Semantic roles & 50–950 ramp

primary
#31399F
secondary
#BDB76F
accent
#D24CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31399F

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

Preview Lab → · Contrast checker → · Palette generator →

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