#31459F#31459F

#31459F is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.148 H 269.7°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#31459F
RGBrgb(49, 69, 159)
HSLhsl(229, 53%, 41%)
HSVhsv(229, 69%, 62%)
CMYKcmyk(69.2%, 56.6%, 0%, 37.6%)
CIE-LABlab(32.73, 23.24, -51.30)
CIE-LCHlch(32.73, 56.31, 294.37°)
OKLaboklab(42.89% -0.0009 -0.1476)
OKLCHoklch(42.89% 0.148 269.7)
XYZxyz(9.6506, 7.4115, 33.7161)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31459F #9F8B31
analogous
#317C9F #31459F #54319F
triadic
#31459F #9F3145 #459F31
tetradic
#31459F #9F317C #9F8B31 #319F54
square
#31459F #9F317C #9F8B31 #319F54
split-complementary
#31459F #9F5431 #7C9F31
monochromatic
#141C41 #233170 #31459F #475EC6 #7687D5

Accessibility & contrast

On white

8.46
#31459F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#31459F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31459F
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31459F#FFFFFF#000000##FFFFFF
##31459F1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #31459f;
/* rgb */ color: rgb(49, 69, 159);
/* oklch */ color: oklch(42.9% 0.148 269.7);
Tailwind
colors: {
  custom: {
    50: '#7778bc',
    500: '#31459f',
    950: '#000000',
  },
}
SCSS
$custom: #31459f;
$custom-light: #7778bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31459f",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 159
  },
  "hsl": {
    "h": 229.091,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42887,
    "c": 0.14764,
    "h": 269.7
  },
  "luminance": 0.07412
}

Semantic roles & 50–950 ramp

primary
#31459F
secondary
#BDAF6F
accent
#C24CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31459F

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

Preview Lab → · Contrast checker → · Palette generator →

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