#314971#314971

#314971 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.5% C 0.074 H 260.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#314971
RGBrgb(49, 73, 113)
HSLhsl(218, 40%, 32%)
HSVhsv(218, 57%, 44%)
CMYKcmyk(56.6%, 35.4%, 0%, 55.7%)
CIE-LABlab(30.90, 3.65, -25.86)
CIE-LCHlch(30.90, 26.12, 278.03°)
OKLaboklab(40.53% -0.0126 -0.0729)
OKLCHoklch(40.53% 0.074 260.2)
XYZxyz(6.6288, 6.6098, 16.5461)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314971 #715931
analogous
#316971 #314971 #393171
triadic
#314971 #713149 #497131
tetradic
#314971 #713169 #715931 #317139
square
#314971 #713169 #715931 #317139
split-complementary
#314971 #713931 #697131
monochromatic
#0C121C #1E2D46 #314971 #44659C #6283BB

Accessibility & contrast

On white

9.04
#314971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#314971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314971
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314971#FFFFFF#000000##FFFFFF
##3149711.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394C73
Deuteranopia (green-blind)
#314670
Tritanopia (blue-blind)
#0D5257
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #314971;
/* rgb */ color: rgb(49, 73, 113);
/* oklch */ color: oklch(40.5% 0.074 260.2);
Tailwind
colors: {
  custom: {
    50: '#6e7b9a',
    500: '#314971',
    950: '#000000',
  },
}
SCSS
$custom: #314971;
$custom-light: #6e7b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#314971",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 113
  },
  "hsl": {
    "h": 217.5,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40534,
    "c": 0.07403,
    "h": 260.2
  },
  "luminance": 0.0661
}

Semantic roles & 50–950 ramp

primary
#314971
secondary
#A2885C
accent
#A358CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #314971

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

Preview Lab → · Contrast checker → · Palette generator →

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