#314371#314371

#314371 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.1% C 0.082 H 266.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#314371
RGBrgb(49, 67, 113)
HSLhsl(223, 40%, 32%)
HSVhsv(223, 57%, 44%)
CMYKcmyk(56.6%, 40.7%, 0%, 55.7%)
CIE-LABlab(29.05, 7.65, -28.78)
CIE-LCHlch(29.05, 29.78, 284.89°)
OKLaboklab(39.1% -0.0049 -0.0815)
OKLCHoklch(39.1% 0.082 266.5)
XYZxyz(6.2534, 5.8591, 16.4210)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314371 #715F31
analogous
#316371 #314371 #3F3171
triadic
#314371 #713143 #437131
tetradic
#314371 #713163 #715F31 #31713F
square
#314371 #713163 #715F31 #31713F
split-complementary
#314371 #713F31 #637131
monochromatic
#0C101C #1E2A46 #314371 #445C9C #627BBB

Accessibility & contrast

On white

9.67
#314371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#314371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314371
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314371#FFFFFF#000000##FFFFFF
##3143711.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304873
Deuteranopia (green-blind)
#294270
Tritanopia (blue-blind)
#0F4D54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #314371;
/* rgb */ color: rgb(49, 67, 113);
/* oklch */ color: oklch(39.1% 0.082 266.5);
Tailwind
colors: {
  custom: {
    50: '#6e769a',
    500: '#314371',
    950: '#000000',
  },
}
SCSS
$custom: #314371;
$custom-light: #6e769a;
$custom-dark: #000000;
JSON
{
  "hex": "#314371",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 113
  },
  "hsl": {
    "h": 223.125,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39102,
    "c": 0.08165,
    "h": 266.5
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#314371
secondary
#A28E5C
accent
#AE58CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #314371

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

Preview Lab → · Contrast checker → · Palette generator →

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