#314182#314182

#314182 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.8% C 0.111 H 270.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#314182
RGBrgb(49, 65, 130)
HSLhsl(228, 45%, 35%)
HSVhsv(228, 62%, 51%)
CMYKcmyk(62.3%, 50%, 0%, 49%)
CIE-LABlab(29.52, 15.18, -38.70)
CIE-LCHlch(29.52, 41.57, 291.42°)
OKLaboklab(39.81% 0.0006 -0.1106)
OKLCHoklch(39.81% 0.111 270.3)
XYZxyz(7.1848, 6.0447, 21.9029)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314182 #827231
analogous
#316982 #314182 #493182
triadic
#314182 #823141 #418231
tetradic
#314182 #823169 #827231 #318249
square
#314182 #823169 #827231 #318249
split-complementary
#314182 #824931 #698231
monochromatic
#0F1529 #202B56 #314182 #4257AE #687AC6

Accessibility & contrast

On white

9.51
#314182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#314182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314182
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314182#FFFFFF#000000##FFFFFF
##3141821.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204984
Deuteranopia (green-blind)
#124281
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #314182;
/* rgb */ color: rgb(49, 65, 130);
/* oklch */ color: oklch(39.8% 0.111 270.3);
Tailwind
colors: {
  custom: {
    50: '#7175a7',
    500: '#314182',
    950: '#000000',
  },
}
SCSS
$custom: #314182;
$custom-light: #7175a7;
$custom-dark: #000000;
JSON
{
  "hex": "#314182",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 130
  },
  "hsl": {
    "h": 228.148,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39807,
    "c": 0.11062,
    "h": 270.3
  },
  "luminance": 0.06045
}

Semantic roles & 50–950 ramp

primary
#314182
secondary
#AD9E62
accent
#BB53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #314182

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

Preview Lab → · Contrast checker → · Palette generator →

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