#314188#314188

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

Color values

HEX#314188
RGBrgb(49, 65, 136)
HSLhsl(229, 47%, 36%)
HSVhsv(229, 64%, 53%)
CMYKcmyk(64%, 52.2%, 0%, 46.7%)
CIE-LABlab(29.94, 17.40, -41.75)
CIE-LCHlch(29.94, 45.23, 292.62°)
OKLaboklab(40.25% 0.0013 -0.1196)
OKLCHoklch(40.25% 0.12 270.6)
XYZxyz(7.5994, 6.2105, 24.0861)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314188 #887831
analogous
#316D88 #314188 #4D3188
triadic
#314188 #883141 #418831
tetradic
#314188 #88316D #887831 #31884D
square
#314188 #88316D #887831 #31884D
split-complementary
#314188 #884D31 #6D8831
monochromatic
#11162E #212B5B #314188 #4157B5 #6A7CC9

Accessibility & contrast

On white

9.37
#314188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314188
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314188#FFFFFF#000000##FFFFFF
##3141881.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194B8B
Deuteranopia (green-blind)
#024387
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #314188;
/* rgb */ color: rgb(49, 65, 136);
/* oklch */ color: oklch(40.3% 0.120 270.6);
Tailwind
colors: {
  custom: {
    50: '#7275ab',
    500: '#314188',
    950: '#000000',
  },
}
SCSS
$custom: #314188;
$custom-light: #7275ab;
$custom-dark: #000000;
JSON
{
  "hex": "#314188",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 136
  },
  "hsl": {
    "h": 228.966,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40252,
    "c": 0.11963,
    "h": 270.6
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#314188
secondary
#B1A364
accent
#BE51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #314188

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

Preview Lab → · Contrast checker → · Palette generator →

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