#31459C#31459C

#31459C is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.143 H 269.6°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#31459C
RGBrgb(49, 69, 156)
HSLhsl(229, 52%, 40%)
HSVhsv(229, 69%, 61%)
CMYKcmyk(68.6%, 55.8%, 0%, 38.8%)
CIE-LABlab(32.50, 22.12, -49.85)
CIE-LCHlch(32.50, 54.54, 293.93°)
OKLaboklab(42.65% -0.001 -0.1434)
OKLCHoklch(42.65% 0.143 269.6)
XYZxyz(9.3934, 7.3086, 32.3617)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31459C #9C8831
analogous
#317A9C #31459C #52319C
triadic
#31459C #9C3145 #459C31
tetradic
#31459C #9C317A #9C8831 #319C52
square
#31459C #9C317A #9C8831 #319C52
split-complementary
#31459C #9C5231 #7A9C31
monochromatic
#141C3F #22306D #31459C #455DC5 #7486D3

Accessibility & contrast

On white

8.53
#31459C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#31459C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31459C
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31459C#FFFFFF#000000##FFFFFF
##31459C1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#005A69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #31459c;
/* rgb */ color: rgb(49, 69, 156);
/* oklch */ color: oklch(42.6% 0.143 269.6);
Tailwind
colors: {
  custom: {
    50: '#7678ba',
    500: '#31459c',
    950: '#000000',
  },
}
SCSS
$custom: #31459c;
$custom-light: #7678ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31459c",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 156
  },
  "hsl": {
    "h": 228.785,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42646,
    "c": 0.14339,
    "h": 269.6
  },
  "luminance": 0.0731
}

Semantic roles & 50–950 ramp

primary
#31459C
secondary
#BBAD6D
accent
#C14CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31459C

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

Preview Lab → · Contrast checker → · Palette generator →

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