#314F9F#314F9F

#314F9F is a dark, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.135 H 265.8°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#314F9F
RGBrgb(49, 79, 159)
HSLhsl(224, 53%, 41%)
HSVhsv(224, 69%, 62%)
CMYKcmyk(69.2%, 50.3%, 0%, 37.6%)
CIE-LABlab(35.49, 16.57, -46.82)
CIE-LCHlch(35.49, 49.67, 289.49°)
OKLaboklab(44.98% -0.01 -0.1343)
OKLCHoklch(44.98% 0.135 265.8)
XYZxyz(10.3184, 8.7471, 33.9387)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F9F #9F8131
analogous
#31869F #314F9F #4A319F
triadic
#314F9F #9F314F #4F9F31
tetradic
#314F9F #9F3186 #9F8131 #319F4A
square
#314F9F #9F3186 #9F8131 #319F4A
split-complementary
#314F9F #9F4A31 #869F31
monochromatic
#142141 #233870 #314F9F #476AC6 #7690D5

Accessibility & contrast

On white

7.64
#314F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#314F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F9F
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F9F#FFFFFF#000000##FFFFFF
##314F9F1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2259A2
Deuteranopia (green-blind)
#004F9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314f9f;
/* rgb */ color: rgb(49, 79, 159);
/* oklch */ color: oklch(45.0% 0.135 265.8);
Tailwind
colors: {
  custom: {
    50: '#767fbc',
    500: '#314f9f',
    950: '#000000',
  },
}
SCSS
$custom: #314f9f;
$custom-light: #767fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#314f9f",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 159
  },
  "hsl": {
    "h": 223.636,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44979,
    "c": 0.1347,
    "h": 265.8
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#314F9F
secondary
#BDA86F
accent
#B54CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #314F9F

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

Preview Lab → · Contrast checker → · Palette generator →

#314F9F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva