#31348F#31348F

#31348F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.147 H 275.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#31348F
RGBrgb(49, 52, 143)
HSLhsl(238, 49%, 38%)
HSVhsv(238, 66%, 56%)
CMYKcmyk(65.7%, 63.6%, 0%, 43.9%)
CIE-LABlab(26.99, 28.67, -50.85)
CIE-LCHlch(26.99, 58.38, 299.41°)
OKLaboklab(38.23% 0.0141 -0.1465)
OKLCHoklch(38.23% 0.147 275.5)
XYZxyz(7.4509, 5.0915, 26.5714)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31348F #8F8C31
analogous
#31638F #31348F #5D318F
triadic
#31348F #8F3134 #348F31
tetradic
#31348F #8F3163 #8F8C31 #318F5D
square
#31348F #8F3163 #8F8C31 #318F5D
split-complementary
#31348F #8F5D31 #638F31
monochromatic
#121334 #212361 #31348F #4145BD #6D70CD

Accessibility & contrast

On white

10.40
#31348F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#31348F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31348F
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31348F#FFFFFF#000000##FFFFFF
##31348F1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31348f;
/* rgb */ color: rgb(49, 52, 143);
/* oklch */ color: oklch(38.2% 0.147 275.5);
Tailwind
colors: {
  custom: {
    50: '#756bb1',
    500: '#31348f',
    950: '#000000',
  },
}
SCSS
$custom: #31348f;
$custom-light: #756bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#31348f",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 143
  },
  "hsl": {
    "h": 238.085,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38227,
    "c": 0.1472,
    "h": 275.5
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#31348F
secondary
#B5B267
accent
#D44FD9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #31348F

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

Preview Lab → · Contrast checker → · Palette generator →

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