#31358C#31358C

#31358C is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.142 H 275.4°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#31358C
RGBrgb(49, 53, 140)
HSLhsl(237, 48%, 37%)
HSVhsv(237, 65%, 55%)
CMYKcmyk(65%, 62.1%, 0%, 45.1%)
CIE-LABlab(27.00, 26.94, -49.00)
CIE-LCHlch(27.00, 55.91, 298.80°)
OKLaboklab(38.15% 0.0133 -0.1411)
OKLCHoklch(38.15% 0.142 275.4)
XYZxyz(7.2718, 5.0920, 25.4055)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31358C #8C8831
analogous
#31628C #31358C #5B318C
triadic
#31358C #8C3135 #358C31
tetradic
#31358C #8C3162 #8C8831 #318C5B
square
#31358C #8C3162 #8C8831 #318C5B
split-complementary
#31358C #8C5B31 #628C31
monochromatic
#111331 #21245F #31358C #4146B9 #6C70CC

Accessibility & contrast

On white

10.40
#31358C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#31358C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31358C
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31358C#FFFFFF#000000##FFFFFF
##31358C1.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)
#00448F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31358c;
/* rgb */ color: rgb(49, 53, 140);
/* oklch */ color: oklch(38.1% 0.142 275.4);
Tailwind
colors: {
  custom: {
    50: '#746cae',
    500: '#31358c',
    950: '#000000',
  },
}
SCSS
$custom: #31358c;
$custom-light: #746cae;
$custom-dark: #000000;
JSON
{
  "hex": "#31358c",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 140
  },
  "hsl": {
    "h": 237.363,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3815,
    "c": 0.14169,
    "h": 275.4
  },
  "luminance": 0.05093
}

Semantic roles & 50–950 ramp

primary
#31358C
secondary
#B3B066
accent
#D250D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31358C

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

Preview Lab → · Contrast checker → · Palette generator →

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