#314398#314398

#314398 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.140 H 270.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#314398
RGBrgb(49, 67, 152)
HSLhsl(230, 51%, 39%)
HSVhsv(230, 68%, 60%)
CMYKcmyk(67.8%, 55.9%, 0%, 40.4%)
CIE-LABlab(31.65, 21.98, -48.79)
CIE-LCHlch(31.65, 53.51, 294.25°)
OKLaboklab(41.92% 0.0006 -0.1403)
OKLCHoklch(41.92% 0.14 270.2)
XYZxyz(8.9394, 6.9334, 30.5669)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314398 #988631
analogous
#317798 #314398 #533198
triadic
#314398 #983143 #439831
tetradic
#314398 #983177 #988631 #319853
square
#314398 #983177 #988631 #319853
split-complementary
#314398 #985331 #779831
monochromatic
#131A3B #222F6A #314398 #445AC3 #7283D2

Accessibility & contrast

On white

8.80
#314398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314398
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314398#FFFFFF#000000##FFFFFF
##3143981.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #314398;
/* rgb */ color: rgb(49, 67, 152);
/* oklch */ color: oklch(41.9% 0.140 270.2);
Tailwind
colors: {
  custom: {
    50: '#7676b7',
    500: '#314398',
    950: '#000000',
  },
}
SCSS
$custom: #314398;
$custom-light: #7676b7;
$custom-dark: #000000;
JSON
{
  "hex": "#314398",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 152
  },
  "hsl": {
    "h": 229.515,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41916,
    "c": 0.1403,
    "h": 270.2
  },
  "luminance": 0.06934
}

Semantic roles & 50–950 ramp

primary
#314398
secondary
#B9AC6B
accent
#C24DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #314398

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

Preview Lab → · Contrast checker → · Palette generator →

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