#31348A#31348A

#31348A is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.140 H 275.9°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#31348A
RGBrgb(49, 52, 138)
HSLhsl(238, 48%, 37%)
HSVhsv(238, 64%, 54%)
CMYKcmyk(64.5%, 62.3%, 0%, 45.9%)
CIE-LABlab(26.57, 26.88, -48.44)
CIE-LCHlch(26.57, 55.40, 299.02°)
OKLaboklab(37.79% 0.0143 -0.1394)
OKLCHoklch(37.79% 0.14 275.9)
XYZxyz(7.0806, 4.9434, 24.6209)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31348A #8A8731
analogous
#31618A #31348A #5B318A
triadic
#31348A #8A3134 #348A31
tetradic
#31348A #8A3161 #8A8731 #318A5B
square
#31348A #8A3161 #8A8731 #318A5B
split-complementary
#31348A #8A5B31 #618A31
monochromatic
#111230 #21235D #31348A #4145B7 #6B6ECA

Accessibility & contrast

On white

10.56
#31348A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#31348A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31348A
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31348A#FFFFFF#000000##FFFFFF
##31348A1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31348a;
/* rgb */ color: rgb(49, 52, 138);
/* oklch */ color: oklch(37.8% 0.140 275.9);
Tailwind
colors: {
  custom: {
    50: '#746bad',
    500: '#31348a',
    950: '#000000',
  },
}
SCSS
$custom: #31348a;
$custom-light: #746bad;
$custom-dark: #000000;
JSON
{
  "hex": "#31348a",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 138
  },
  "hsl": {
    "h": 237.978,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37786,
    "c": 0.14017,
    "h": 275.9
  },
  "luminance": 0.04944
}

Semantic roles & 50–950 ramp

primary
#31348A
secondary
#B2AF65
accent
#D351D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #31348A

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

Preview Lab → · Contrast checker → · Palette generator →

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