#31348C#31348C

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

Color values

HEX#31348C
RGBrgb(49, 52, 140)
HSLhsl(238, 48%, 37%)
HSVhsv(238, 65%, 55%)
CMYKcmyk(65%, 62.9%, 0%, 45.1%)
CIE-LABlab(26.74, 27.60, -49.41)
CIE-LCHlch(26.74, 56.60, 299.18°)
OKLaboklab(37.96% 0.0142 -0.1423)
OKLCHoklch(37.96% 0.143 275.7)
XYZxyz(7.2267, 5.0018, 25.3905)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31348C #8C8931
analogous
#31628C #31348C #5C318C
triadic
#31348C #8C3134 #348C31
tetradic
#31348C #8C3162 #8C8931 #318C5C
square
#31348C #8C3162 #8C8931 #318C5C
split-complementary
#31348C #8C5C31 #628C31
monochromatic
#111231 #21235F #31348C #4145B9 #6C6FCC

Accessibility & contrast

On white

10.50
#31348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#31348C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31348C
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31348C#FFFFFF#000000##FFFFFF
##31348C1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31348c;
/* rgb */ color: rgb(49, 52, 140);
/* oklch */ color: oklch(38.0% 0.143 275.7);
Tailwind
colors: {
  custom: {
    50: '#746bae',
    500: '#31348c',
    950: '#000000',
  },
}
SCSS
$custom: #31348c;
$custom-light: #746bae;
$custom-dark: #000000;
JSON
{
  "hex": "#31348c",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 238.022,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37961,
    "c": 0.143,
    "h": 275.7
  },
  "luminance": 0.05002
}

Semantic roles & 50–950 ramp

primary
#31348C
secondary
#B3B066
accent
#D350D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #31348C

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

Preview Lab → · Contrast checker → · Palette generator →

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