#314591#314591

#314591 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.128 H 269.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#314591
RGBrgb(49, 69, 145)
HSLhsl(228, 49%, 38%)
HSVhsv(228, 66%, 57%)
CMYKcmyk(66.2%, 52.4%, 0%, 43.1%)
CIE-LABlab(31.70, 18.03, -44.45)
CIE-LCHlch(31.70, 47.97, 292.08°)
OKLaboklab(41.79% -0.0019 -0.1275)
OKLCHoklch(41.79% 0.128 269.2)
XYZxyz(8.5038, 6.9528, 27.6764)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314591 #917D31
analogous
#317591 #314591 #4D3191
triadic
#314591 #913145 #459131
tetradic
#314591 #913175 #917D31 #31914D
square
#314591 #913175 #917D31 #31914D
split-complementary
#314591 #914D31 #759131
monochromatic
#121936 #222F63 #314591 #415BBF #6E82CE

Accessibility & contrast

On white

8.78
#314591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#314591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314591
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314591#FFFFFF#000000##FFFFFF
##3145911.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184F94
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#005764
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #314591;
/* rgb */ color: rgb(49, 69, 145);
/* oklch */ color: oklch(41.8% 0.128 269.2);
Tailwind
colors: {
  custom: {
    50: '#7478b2',
    500: '#314591',
    950: '#000000',
  },
}
SCSS
$custom: #314591;
$custom-light: #7478b2;
$custom-dark: #000000;
JSON
{
  "hex": "#314591",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 227.5,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41788,
    "c": 0.12751,
    "h": 269.2
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#314591
secondary
#B6A668
accent
#BC4FD9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #314591

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

Preview Lab → · Contrast checker → · Palette generator →

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