#314281#314281

#314281 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.0% C 0.108 H 269.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#314281
RGBrgb(49, 66, 129)
HSLhsl(227, 45%, 35%)
HSVhsv(227, 62%, 51%)
CMYKcmyk(62%, 48.8%, 0%, 49.4%)
CIE-LABlab(29.75, 14.14, -37.72)
CIE-LCHlch(29.75, 40.28, 290.55°)
OKLaboklab(39.96% -0.0007 -0.1077)
OKLCHoklch(39.96% 0.108 269.6)
XYZxyz(7.1760, 6.1338, 21.5704)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314281 #817031
analogous
#316A81 #314281 #483181
triadic
#314281 #813142 #428131
tetradic
#314281 #81316A #817031 #318148
square
#314281 #81316A #817031 #318148
split-complementary
#314281 #814831 #6A8131
monochromatic
#0F1528 #202B55 #314281 #4259AD #677BC5

Accessibility & contrast

On white

9.43
#314281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#314281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314281
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314281#FFFFFF#000000##FFFFFF
##3142811.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234A83
Deuteranopia (green-blind)
#164380
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #314281;
/* rgb */ color: rgb(49, 66, 129);
/* oklch */ color: oklch(40.0% 0.108 269.6);
Tailwind
colors: {
  custom: {
    50: '#7176a6',
    500: '#314281',
    950: '#000000',
  },
}
SCSS
$custom: #314281;
$custom-light: #7176a6;
$custom-dark: #000000;
JSON
{
  "hex": "#314281",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 129
  },
  "hsl": {
    "h": 227.25,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39955,
    "c": 0.10772,
    "h": 269.6
  },
  "luminance": 0.06134
}

Semantic roles & 50–950 ramp

primary
#314281
secondary
#AD9D61
accent
#B953D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #314281

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

Preview Lab → · Contrast checker → · Palette generator →

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