#31347A#31347A

#31347A is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.4% C 0.117 H 277.1°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#31347A
RGBrgb(49, 52, 122)
HSLhsl(238, 43%, 34%)
HSVhsv(238, 60%, 48%)
CMYKcmyk(59.8%, 57.4%, 0%, 52.2%)
CIE-LABlab(25.30, 21.13, -40.48)
CIE-LCHlch(25.30, 45.66, 297.56°)
OKLaboklab(36.44% 0.0144 -0.116)
OKLCHoklch(36.44% 0.117 277.1)
XYZxyz(6.0063, 4.5137, 18.9633)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31347A #7A7731
analogous
#31587A #31347A #52317A
triadic
#31347A #7A3134 #347A31
tetradic
#31347A #7A3158 #7A7731 #317A52
square
#31347A #7A3158 #7A7731 #317A52
split-complementary
#31347A #7A5231 #587A31
monochromatic
#0E0F23 #1F214E #31347A #4347A6 #6468C1

Accessibility & contrast

On white

11.04
#31347A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#31347A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31347A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31347A#FFFFFF#000000##FFFFFF
##31347A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033F7C
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#044451
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31347a;
/* rgb */ color: rgb(49, 52, 122);
/* oklch */ color: oklch(36.4% 0.117 277.1);
Tailwind
colors: {
  custom: {
    50: '#706ba1',
    500: '#31347a',
    950: '#000000',
  },
}
SCSS
$custom: #31347a;
$custom-light: #706ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#31347a",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 122
  },
  "hsl": {
    "h": 237.534,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36443,
    "c": 0.1169,
    "h": 277.1
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#31347A
secondary
#A8A55E
accent
#CD55D2
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31347A

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

Preview Lab → · Contrast checker → · Palette generator →

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