#31337A#31337A

#31337A is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.2% C 0.118 H 277.5°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#31337A
RGBrgb(49, 51, 122)
HSLhsl(238, 43%, 34%)
HSVhsv(238, 60%, 48%)
CMYKcmyk(59.8%, 58.2%, 0%, 52.2%)
CIE-LABlab(25.03, 21.81, -40.92)
CIE-LCHlch(25.03, 46.37, 298.06°)
OKLaboklab(36.24% 0.0155 -0.1173)
OKLCHoklch(36.24% 0.118 277.5)
XYZxyz(5.9622, 4.4253, 18.9486)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31337A #7A7831
analogous
#31577A #31337A #53317A
triadic
#31337A #7A3133 #337A31
tetradic
#31337A #7A3157 #7A7831 #317A53
square
#31337A #7A3157 #7A7831 #317A53
split-complementary
#31337A #7A5331 #577A31
monochromatic
#0E0E23 #1F214E #31337A #4345A6 #6467C1

Accessibility & contrast

On white

11.14
#31337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#31337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31337A
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31337A#FFFFFF#000000##FFFFFF
##31337A1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#044451
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31337a;
/* rgb */ color: rgb(49, 51, 122);
/* oklch */ color: oklch(36.2% 0.118 277.5);
Tailwind
colors: {
  custom: {
    50: '#716aa1',
    500: '#31337a',
    950: '#000000',
  },
}
SCSS
$custom: #31337a;
$custom-light: #716aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#31337a",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 238.356,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36241,
    "c": 0.11833,
    "h": 277.5
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#31337A
secondary
#A8A65E
accent
#CF55D2
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31337A

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

Preview Lab → · Contrast checker → · Palette generator →

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