#314187#314187

#314187 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.2% C 0.118 H 270.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#314187
RGBrgb(49, 65, 135)
HSLhsl(229, 47%, 36%)
HSVhsv(229, 64%, 53%)
CMYKcmyk(63.7%, 51.9%, 0%, 47.1%)
CIE-LABlab(29.87, 17.03, -41.25)
CIE-LCHlch(29.87, 44.62, 292.43°)
OKLaboklab(40.18% 0.0012 -0.1181)
OKLCHoklch(40.18% 0.118 270.6)
XYZxyz(7.5286, 6.1822, 23.7135)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314187 #877731
analogous
#316C87 #314187 #4C3187
triadic
#314187 #873141 #418731
tetradic
#314187 #87316C #877731 #31874C
square
#314187 #87316C #877731 #31874C
split-complementary
#314187 #874C31 #6C8731
monochromatic
#10162D #212B5A #314187 #4157B4 #6A7BC9

Accessibility & contrast

On white

9.39
#314187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#314187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314187
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314187#FFFFFF#000000##FFFFFF
##3141871.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4A8A
Deuteranopia (green-blind)
#054386
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #314187;
/* rgb */ color: rgb(49, 65, 135);
/* oklch */ color: oklch(40.2% 0.118 270.6);
Tailwind
colors: {
  custom: {
    50: '#7275aa',
    500: '#314187',
    950: '#000000',
  },
}
SCSS
$custom: #314187;
$custom-light: #7275aa;
$custom-dark: #000000;
JSON
{
  "hex": "#314187",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 228.837,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40177,
    "c": 0.11814,
    "h": 270.6
  },
  "luminance": 0.06183
}

Semantic roles & 50–950 ramp

primary
#314187
secondary
#B0A264
accent
#BE51D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #314187

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

Preview Lab → · Contrast checker → · Palette generator →

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