#314772#314772

#314772 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.078 H 262.8°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#314772
RGBrgb(49, 71, 114)
HSLhsl(220, 40%, 32%)
HSVhsv(220, 57%, 45%)
CMYKcmyk(57%, 37.7%, 0%, 55.3%)
CIE-LABlab(30.34, 5.33, -27.38)
CIE-LCHlch(30.34, 27.90, 281.01°)
OKLaboklab(40.11% -0.0098 -0.0774)
OKLCHoklch(40.11% 0.078 262.8)
XYZxyz(6.5561, 6.3739, 16.8011)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314772 #725C31
analogous
#316872 #314772 #3C3172
triadic
#314772 #723147 #477231
tetradic
#314772 #723168 #725C31 #31723C
square
#314772 #723168 #725C31 #31723C
split-complementary
#314772 #723C31 #687231
monochromatic
#0C121C #1F2C47 #314772 #43629D #6280BB

Accessibility & contrast

On white

9.23
#314772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#314772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314772
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314772#FFFFFF#000000##FFFFFF
##3147721.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B74
Deuteranopia (green-blind)
#2E4571
Tritanopia (blue-blind)
#0C5057
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #314772;
/* rgb */ color: rgb(49, 71, 114);
/* oklch */ color: oklch(40.1% 0.078 262.8);
Tailwind
colors: {
  custom: {
    50: '#6e799b',
    500: '#314772',
    950: '#000000',
  },
}
SCSS
$custom: #314772;
$custom-light: #6e799b;
$custom-dark: #000000;
JSON
{
  "hex": "#314772",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 114
  },
  "hsl": {
    "h": 219.692,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40113,
    "c": 0.07801,
    "h": 262.8
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#314772
secondary
#A38B5C
accent
#A758D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #314772

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

Preview Lab → · Contrast checker → · Palette generator →

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