#314381#314381

#314381 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.2% C 0.106 H 269.0°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#314381
RGBrgb(49, 67, 129)
HSLhsl(227, 45%, 35%)
HSVhsv(227, 62%, 51%)
CMYKcmyk(62%, 48.1%, 0%, 49.4%)
CIE-LABlab(30.04, 13.46, -37.25)
CIE-LCHlch(30.04, 39.61, 289.87°)
OKLaboklab(40.18% -0.0018 -0.1063)
OKLCHoklch(40.18% 0.106 269)
XYZxyz(7.2349, 6.2517, 21.5901)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314381 #816F31
analogous
#316B81 #314381 #473181
triadic
#314381 #813143 #438131
tetradic
#314381 #81316B #816F31 #318147
square
#314381 #81316B #816F31 #318147
split-complementary
#314381 #814731 #6B8131
monochromatic
#0F1528 #202C55 #314381 #425AAD #677CC5

Accessibility & contrast

On white

9.33
#314381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#314381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314381
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314381#FFFFFF#000000##FFFFFF
##3143811.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254B83
Deuteranopia (green-blind)
#194380
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #314381;
/* rgb */ color: rgb(49, 67, 129);
/* oklch */ color: oklch(40.2% 0.106 269.0);
Tailwind
colors: {
  custom: {
    50: '#7176a6',
    500: '#314381',
    950: '#000000',
  },
}
SCSS
$custom: #314381;
$custom-light: #7176a6;
$custom-dark: #000000;
JSON
{
  "hex": "#314381",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 129
  },
  "hsl": {
    "h": 226.5,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40177,
    "c": 0.10636,
    "h": 269
  },
  "luminance": 0.06252
}

Semantic roles & 50–950 ramp

primary
#314381
secondary
#AD9C61
accent
#B853D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #314381

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

Preview Lab → · Contrast checker → · Palette generator →

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