#314887#314887

#314887 is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.7% C 0.109 H 266.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#314887
RGBrgb(49, 72, 135)
HSLhsl(224, 47%, 36%)
HSVhsv(224, 64%, 53%)
CMYKcmyk(63.7%, 46.7%, 0%, 47.1%)
CIE-LABlab(31.89, 12.30, -38.00)
CIE-LCHlch(31.89, 39.94, 287.93°)
OKLaboklab(41.72% -0.0064 -0.1085)
OKLCHoklch(41.72% 0.109 266.6)
XYZxyz(7.9557, 7.0363, 23.8559)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314887 #877031
analogous
#317387 #314887 #453187
triadic
#314887 #873148 #488731
tetradic
#314887 #873173 #877031 #318745
square
#314887 #873173 #877031 #318745
split-complementary
#314887 #874531 #738731
monochromatic
#10182D #21305A #314887 #4160B4 #6A83C9

Accessibility & contrast

On white

8.72
#314887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#314887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314887
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314887#FFFFFF#000000##FFFFFF
##3148871.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4F89
Deuteranopia (green-blind)
#1C4786
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #314887;
/* rgb */ color: rgb(49, 72, 135);
/* oklch */ color: oklch(41.7% 0.109 266.6);
Tailwind
colors: {
  custom: {
    50: '#727aaa',
    500: '#314887',
    950: '#000000',
  },
}
SCSS
$custom: #314887;
$custom-light: #727aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#314887",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 135
  },
  "hsl": {
    "h": 223.953,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41717,
    "c": 0.10868,
    "h": 266.6
  },
  "luminance": 0.07037
}

Semantic roles & 50–950 ramp

primary
#314887
secondary
#B09C64
accent
#B351D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #314887

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

Preview Lab → · Contrast checker → · Palette generator →

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