#31339A#31339A

#31339A is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.163 H 274.9°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#31339A
RGBrgb(49, 51, 154)
HSLhsl(239, 52%, 40%)
HSVhsv(239, 68%, 60%)
CMYKcmyk(68.2%, 66.9%, 0%, 39.6%)
CIE-LABlab(27.72, 33.22, -56.43)
CIE-LCHlch(27.72, 65.48, 300.49°)
OKLaboklab(39.06% 0.0141 -0.1629)
OKLCHoklch(39.06% 0.163 274.9)
XYZxyz(8.2813, 5.3530, 31.1624)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31339A #9A9831
analogous
#31689A #31339A #63319A
triadic
#31339A #9A3133 #339A31
tetradic
#31339A #9A3168 #9A9831 #319A63
square
#31339A #9A3168 #9A9831 #319A63
split-complementary
#31339A #9A6331 #689A31
monochromatic
#13143D #22246C #31339A #4547C4 #7375D2

Accessibility & contrast

On white

10.14
#31339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#31339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31339A
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31339A#FFFFFF#000000##FFFFFF
##31339A1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003D98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31339a;
/* rgb */ color: rgb(49, 51, 154);
/* oklch */ color: oklch(39.1% 0.163 274.9);
Tailwind
colors: {
  custom: {
    50: '#776bb9',
    500: '#31339a',
    950: '#000000',
  },
}
SCSS
$custom: #31339a;
$custom-light: #776bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31339a",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 238.857,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39056,
    "c": 0.16348,
    "h": 274.9
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#31339A
secondary
#BAB96C
accent
#D84DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31339A

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

Preview Lab → · Contrast checker → · Palette generator →

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