#314178#314178

#314178 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.095 H 269.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#314178
RGBrgb(49, 65, 120)
HSLhsl(226, 42%, 33%)
HSVhsv(226, 59%, 47%)
CMYKcmyk(59.2%, 45.8%, 0%, 52.9%)
CIE-LABlab(28.87, 11.53, -33.48)
CIE-LCHlch(28.87, 35.41, 289.00°)
OKLaboklab(39.1% -0.001 -0.0953)
OKLCHoklch(39.1% 0.095 269.4)
XYZxyz(6.5460, 5.7891, 18.5381)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314178 #786831
analogous
#316478 #314178 #443178
triadic
#314178 #783141 #417831
tetradic
#314178 #783164 #786831 #317844
square
#314178 #783164 #786831 #317844
split-complementary
#314178 #784431 #647831
monochromatic
#0E1221 #1F294D #314178 #4359A3 #6478C0

Accessibility & contrast

On white

9.73
#314178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#314178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314178
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314178#FFFFFF#000000##FFFFFF
##3141781.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29477A
Deuteranopia (green-blind)
#1F4177
Tritanopia (blue-blind)
#034D56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #314178;
/* rgb */ color: rgb(49, 65, 120);
/* oklch */ color: oklch(39.1% 0.095 269.4);
Tailwind
colors: {
  custom: {
    50: '#6f759f',
    500: '#314178',
    950: '#000000',
  },
}
SCSS
$custom: #314178;
$custom-light: #6f759f;
$custom-dark: #000000;
JSON
{
  "hex": "#314178",
  "rgb": {
    "r": 49,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 226.479,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.391,
    "c": 0.09531,
    "h": 269.4
  },
  "luminance": 0.0579
}

Semantic roles & 50–950 ramp

primary
#314178
secondary
#A7975E
accent
#B656D2
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #314178

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

Preview Lab → · Contrast checker → · Palette generator →

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