#31348E#31348E

#31348E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.146 H 275.6°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#31348E
RGBrgb(49, 52, 142)
HSLhsl(238, 49%, 37%)
HSVhsv(238, 65%, 56%)
CMYKcmyk(65.5%, 63.4%, 0%, 44.3%)
CIE-LABlab(26.91, 28.31, -50.38)
CIE-LCHlch(26.91, 57.79, 299.34°)
OKLaboklab(38.14% 0.0142 -0.1451)
OKLCHoklch(38.14% 0.146 275.6)
XYZxyz(7.3755, 5.0613, 26.1742)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31348E #8E8B31
analogous
#31628E #31348E #5D318E
triadic
#31348E #8E3134 #348E31
tetradic
#31348E #8E3162 #8E8B31 #318E5D
square
#31348E #8E3162 #8E8B31 #318E5D
split-complementary
#31348E #8E5D31 #628E31
monochromatic
#121333 #212361 #31348E #4145BB #6D70CD

Accessibility & contrast

On white

10.44
#31348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#31348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31348E
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31348E#FFFFFF#000000##FFFFFF
##31348E1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31348e;
/* rgb */ color: rgb(49, 52, 142);
/* oklch */ color: oklch(38.1% 0.146 275.6);
Tailwind
colors: {
  custom: {
    50: '#756bb0',
    500: '#31348e',
    950: '#000000',
  },
}
SCSS
$custom: #31348e;
$custom-light: #756bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#31348e",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 238.065,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38138,
    "c": 0.1458,
    "h": 275.6
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

primary
#31348E
secondary
#B4B267
accent
#D450D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #31348E

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

Preview Lab → · Contrast checker → · Palette generator →

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