#31348D#31348D

#31348D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.0% C 0.144 H 275.6°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#31348D
RGBrgb(49, 52, 141)
HSLhsl(238, 48%, 37%)
HSVhsv(238, 65%, 55%)
CMYKcmyk(65.2%, 63.1%, 0%, 44.7%)
CIE-LABlab(26.82, 27.96, -49.90)
CIE-LCHlch(26.82, 57.19, 299.26°)
OKLaboklab(38.05% 0.0142 -0.1437)
OKLCHoklch(38.05% 0.144 275.6)
XYZxyz(7.3008, 5.0314, 25.7806)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31348D #8D8A31
analogous
#31628D #31348D #5C318D
triadic
#31348D #8D3134 #348D31
tetradic
#31348D #8D3162 #8D8A31 #318D5C
square
#31348D #8D3162 #8D8A31 #318D5C
split-complementary
#31348D #8D5C31 #628D31
monochromatic
#111332 #212360 #31348D #4145BA #6C6FCC

Accessibility & contrast

On white

10.47
#31348D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31348D
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31348D#FFFFFF#000000##FFFFFF
##31348D1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31348d;
/* rgb */ color: rgb(49, 52, 141);
/* oklch */ color: oklch(38.0% 0.144 275.6);
Tailwind
colors: {
  custom: {
    50: '#746baf',
    500: '#31348d',
    950: '#000000',
  },
}
SCSS
$custom: #31348d;
$custom-light: #746baf;
$custom-dark: #000000;
JSON
{
  "hex": "#31348d",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 141
  },
  "hsl": {
    "h": 238.043,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3805,
    "c": 0.1444,
    "h": 275.6
  },
  "luminance": 0.05032
}

Semantic roles & 50–950 ramp

primary
#31348D
secondary
#B4B166
accent
#D450D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #31348D

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

Preview Lab → · Contrast checker → · Palette generator →

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