#314581#314581

#314581 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.6% C 0.104 H 267.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#314581
RGBrgb(49, 69, 129)
HSLhsl(225, 45%, 35%)
HSVhsv(225, 62%, 51%)
CMYKcmyk(62%, 46.5%, 0%, 49.4%)
CIE-LABlab(30.63, 12.11, -36.31)
CIE-LCHlch(30.63, 38.28, 288.44°)
OKLaboklab(40.63% -0.0041 -0.1036)
OKLCHoklch(40.63% 0.104 267.8)
XYZxyz(7.3559, 6.4936, 21.6304)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314581 #816D31
analogous
#316D81 #314581 #453181
triadic
#314581 #813145 #458131
tetradic
#314581 #81316D #816D31 #318145
square
#314581 #81316D #816D31 #318145
split-complementary
#314581 #814531 #6D8131
monochromatic
#0F1628 #202D55 #314581 #425DAD #677FC5

Accessibility & contrast

On white

9.14
#314581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#314581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314581
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314581#FFFFFF#000000##FFFFFF
##3145811.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294C83
Deuteranopia (green-blind)
#1D4580
Tritanopia (blue-blind)
#00525C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #314581;
/* rgb */ color: rgb(49, 69, 129);
/* oklch */ color: oklch(40.6% 0.104 267.8);
Tailwind
colors: {
  custom: {
    50: '#7178a6',
    500: '#314581',
    950: '#000000',
  },
}
SCSS
$custom: #314581;
$custom-light: #7178a6;
$custom-dark: #000000;
JSON
{
  "hex": "#314581",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 129
  },
  "hsl": {
    "h": 225,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40625,
    "c": 0.10364,
    "h": 267.8
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#314581
secondary
#AD9A61
accent
#B453D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #314581

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

Preview Lab → · Contrast checker → · Palette generator →

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