#314799#314799

#314799 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.8% C 0.136 H 268.7°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#314799
RGBrgb(49, 71, 153)
HSLhsl(227, 51%, 40%)
HSVhsv(227, 68%, 60%)
CMYKcmyk(68%, 53.6%, 0%, 40%)
CIE-LABlab(32.83, 19.67, -47.50)
CIE-LCHlch(32.83, 51.41, 292.49°)
OKLaboklab(42.82% -0.0031 -0.1364)
OKLCHoklch(42.82% 0.136 268.7)
XYZxyz(9.2677, 7.4585, 31.0820)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314799 #998331
analogous
#317B99 #314799 #4F3199
triadic
#314799 #993147 #479931
tetradic
#314799 #99317B #998331 #31994F
square
#314799 #99317B #998331 #31994F
split-complementary
#314799 #994F31 #7B9931
monochromatic
#131C3C #22316B #314799 #445FC3 #7287D2

Accessibility & contrast

On white

8.43
#314799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#314799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314799
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314799#FFFFFF#000000##FFFFFF
##3147991.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11529C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#005A69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #314799;
/* rgb */ color: rgb(49, 71, 153);
/* oklch */ color: oklch(42.8% 0.136 268.7);
Tailwind
colors: {
  custom: {
    50: '#7579b8',
    500: '#314799',
    950: '#000000',
  },
}
SCSS
$custom: #314799;
$custom-light: #7579b8;
$custom-dark: #000000;
JSON
{
  "hex": "#314799",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 153
  },
  "hsl": {
    "h": 227.308,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42824,
    "c": 0.13647,
    "h": 268.7
  },
  "luminance": 0.07459
}

Semantic roles & 50–950 ramp

primary
#314799
secondary
#BAA96C
accent
#BD4DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314799

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

Preview Lab → · Contrast checker → · Palette generator →

#314799 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva