#31458F#31458F

#31458F is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.6% C 0.125 H 269.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#31458F
RGBrgb(49, 69, 143)
HSLhsl(227, 49%, 38%)
HSVhsv(227, 66%, 56%)
CMYKcmyk(65.7%, 51.7%, 0%, 43.9%)
CIE-LABlab(31.56, 17.29, -43.45)
CIE-LCHlch(31.56, 46.77, 291.69°)
OKLaboklab(41.64% -0.0021 -0.1246)
OKLCHoklch(41.64% 0.125 269)
XYZxyz(8.3510, 6.8916, 26.8714)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31458F #8F7B31
analogous
#31748F #31458F #4C318F
triadic
#31458F #8F3145 #458F31
tetradic
#31458F #8F3174 #8F7B31 #318F4C
square
#31458F #8F3174 #8F7B31 #318F4C
split-complementary
#31458F #8F4C31 #748F31
monochromatic
#121934 #212F61 #31458F #415BBD #6D82CD

Accessibility & contrast

On white

8.83
#31458F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#31458F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31458F
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31458F#FFFFFF#000000##FFFFFF
##31458F1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4F92
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#005663
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31458f;
/* rgb */ color: rgb(49, 69, 143);
/* oklch */ color: oklch(41.6% 0.125 269.0);
Tailwind
colors: {
  custom: {
    50: '#7478b0',
    500: '#31458f',
    950: '#000000',
  },
}
SCSS
$custom: #31458f;
$custom-light: #7478b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31458f",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 143
  },
  "hsl": {
    "h": 227.234,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41637,
    "c": 0.12458,
    "h": 269
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#31458F
secondary
#B5A467
accent
#BB4FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31458F

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

Preview Lab → · Contrast checker → · Palette generator →

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