#31459A#31459A

#31459A is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.5% C 0.141 H 269.5°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#31459A
RGBrgb(49, 69, 154)
HSLhsl(229, 52%, 40%)
HSVhsv(229, 68%, 60%)
CMYKcmyk(68.2%, 55.2%, 0%, 39.6%)
CIE-LABlab(32.35, 21.38, -48.88)
CIE-LCHlch(32.35, 53.35, 293.62°)
OKLaboklab(42.49% -0.0011 -0.1405)
OKLCHoklch(42.49% 0.141 269.5)
XYZxyz(9.2255, 7.2414, 31.4771)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31459A #9A8631
analogous
#317A9A #31459A #51319A
triadic
#31459A #9A3145 #459A31
tetradic
#31459A #9A317A #9A8631 #319A51
square
#31459A #9A317A #9A8631 #319A51
split-complementary
#31459A #9A5131 #7A9A31
monochromatic
#131B3D #22306C #31459A #455DC4 #7385D2

Accessibility & contrast

On white

8.58
#31459A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#31459A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31459A
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31459A#FFFFFF#000000##FFFFFF
##31459A1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04519D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#005968
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #31459a;
/* rgb */ color: rgb(49, 69, 154);
/* oklch */ color: oklch(42.5% 0.141 269.5);
Tailwind
colors: {
  custom: {
    50: '#7678b8',
    500: '#31459a',
    950: '#000000',
  },
}
SCSS
$custom: #31459a;
$custom-light: #7678b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31459a",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 154
  },
  "hsl": {
    "h": 228.571,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42486,
    "c": 0.14053,
    "h": 269.5
  },
  "luminance": 0.07242
}

Semantic roles & 50–950 ramp

primary
#31459A
secondary
#BAAC6C
accent
#C04DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #31459A

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

Preview Lab → · Contrast checker → · Palette generator →

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