#31329F#31329F

#31329F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.171 H 274.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#31329F
RGBrgb(49, 50, 159)
HSLhsl(239, 53%, 41%)
HSVhsv(239, 69%, 62%)
CMYKcmyk(69.2%, 68.6%, 0%, 37.6%)
CIE-LABlab(27.94, 35.60, -59.10)
CIE-LCHlch(27.94, 69.00, 301.07°)
OKLaboklab(39.36% 0.0143 -0.1707)
OKLCHoklch(39.36% 0.171 274.8)
XYZxyz(8.6632, 5.4366, 33.3870)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31329F #9F9E31
analogous
#31699F #31329F #67319F
triadic
#31329F #9F3132 #329F31
tetradic
#31329F #9F3169 #9F9E31 #319F67
square
#31329F #9F3169 #9F9E31 #319F67
split-complementary
#31329F #9F6731 #699F31
monochromatic
#141541 #232370 #31329F #4748C6 #7677D5

Accessibility & contrast

On white

10.06
#31329F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#31329F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31329F
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31329F#FFFFFF#000000##FFFFFF
##31329F1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31329f;
/* rgb */ color: rgb(49, 50, 159);
/* oklch */ color: oklch(39.4% 0.171 274.8);
Tailwind
colors: {
  custom: {
    50: '#786abc',
    500: '#31329f',
    950: '#000000',
  },
}
SCSS
$custom: #31329f;
$custom-light: #786abc;
$custom-dark: #000000;
JSON
{
  "hex": "#31329f",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 159
  },
  "hsl": {
    "h": 239.455,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39361,
    "c": 0.17129,
    "h": 274.8
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#31329F
secondary
#BDBC6F
accent
#DB4CDC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31329F

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

Preview Lab → · Contrast checker → · Palette generator →

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