#31458C#31458C

#31458C is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.4% C 0.120 H 268.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#31458C
RGBrgb(49, 69, 140)
HSLhsl(227, 48%, 37%)
HSVhsv(227, 65%, 55%)
CMYKcmyk(65%, 50.7%, 0%, 45.1%)
CIE-LABlab(31.35, 16.17, -41.94)
CIE-LCHlch(31.35, 44.95, 291.08°)
OKLaboklab(41.41% -0.0024 -0.1201)
OKLCHoklch(41.41% 0.12 268.8)
XYZxyz(8.1268, 6.8019, 25.6905)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31458C #8C7831
analogous
#31738C #31458C #4B318C
triadic
#31458C #8C3145 #458C31
tetradic
#31458C #8C3173 #8C7831 #318C4B
square
#31458C #8C3173 #8C7831 #318C4B
split-complementary
#31458C #8C4B31 #738C31
monochromatic
#111831 #212F5F #31458C #415BB9 #6C81CC

Accessibility & contrast

On white

8.90
#31458C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#31458C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31458C
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31458C#FFFFFF#000000##FFFFFF
##31458C1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4E8F
Deuteranopia (green-blind)
#09468B
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31458c;
/* rgb */ color: rgb(49, 69, 140);
/* oklch */ color: oklch(41.4% 0.120 268.8);
Tailwind
colors: {
  custom: {
    50: '#7378ae',
    500: '#31458c',
    950: '#000000',
  },
}
SCSS
$custom: #31458c;
$custom-light: #7378ae;
$custom-dark: #000000;
JSON
{
  "hex": "#31458c",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 140
  },
  "hsl": {
    "h": 226.813,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41413,
    "c": 0.12014,
    "h": 268.8
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#31458C
secondary
#B3A266
accent
#BA50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31458C

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

Preview Lab → · Contrast checker → · Palette generator →

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