#31348B#31348B

#31348B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.142 H 275.8°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#31348B
RGBrgb(49, 52, 139)
HSLhsl(238, 48%, 37%)
HSVhsv(238, 65%, 55%)
CMYKcmyk(64.7%, 62.6%, 0%, 45.5%)
CIE-LABlab(26.66, 27.24, -48.93)
CIE-LCHlch(26.66, 56.00, 299.11°)
OKLaboklab(37.87% 0.0143 -0.1409)
OKLCHoklch(37.87% 0.142 275.8)
XYZxyz(7.1533, 4.9724, 25.0039)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31348B #8B8831
analogous
#31618B #31348B #5B318B
triadic
#31348B #8B3134 #348B31
tetradic
#31348B #8B3161 #8B8831 #318B5B
square
#31348B #8B3161 #8B8831 #318B5B
split-complementary
#31348B #8B5B31 #618B31
monochromatic
#111231 #21235E #31348B #4145B8 #6B6FCB

Accessibility & contrast

On white

10.53
#31348B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31348B
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31348B#FFFFFF#000000##FFFFFF
##31348B1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31348b;
/* rgb */ color: rgb(49, 52, 139);
/* oklch */ color: oklch(37.9% 0.142 275.8);
Tailwind
colors: {
  custom: {
    50: '#746bae',
    500: '#31348b',
    950: '#000000',
  },
}
SCSS
$custom: #31348b;
$custom-light: #746bae;
$custom-dark: #000000;
JSON
{
  "hex": "#31348b",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 139
  },
  "hsl": {
    "h": 238,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37873,
    "c": 0.14159,
    "h": 275.8
  },
  "luminance": 0.04973
}

Semantic roles & 50–950 ramp

primary
#31348B
secondary
#B2B065
accent
#D350D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #31348B

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

Preview Lab → · Contrast checker → · Palette generator →

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