#1F5199#1F5199

#1F5199 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.2% C 0.129 H 258.1°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#1F5199
RGBrgb(31, 81, 153)
HSLhsl(215, 66%, 36%)
HSVhsv(215, 80%, 60%)
CMYKcmyk(79.7%, 47.1%, 0%, 40%)
CIE-LABlab(34.95, 10.40, -44.12)
CIE-LCHlch(34.95, 45.33, 283.27°)
OKLaboklab(44.24% -0.0267 -0.1266)
OKLCHoklch(44.24% 0.129 258.1)
XYZxyz(9.2552, 8.4750, 31.2789)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5199 #99671F
analogous
#1F8E99 #1F5199 #2A1F99
triadic
#1F5199 #991F51 #51991F
tetradic
#1F5199 #991F8E #99671F #1F992A
square
#1F5199 #991F8E #99671F #1F992A
split-complementary
#1F5199 #992A1F #8E991F
monochromatic
#0A1B33 #153666 #1F5199 #296CCC #568DDD

Accessibility & contrast

On white

7.79
#1F5199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#1F5199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5199
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5199#FFFFFF#000000##FFFFFF
##1F51991.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589C
Deuteranopia (green-blind)
#0B4D98
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f5199;
/* rgb */ color: rgb(31, 81, 153);
/* oklch */ color: oklch(44.2% 0.129 258.1);
Tailwind
colors: {
  custom: {
    50: '#6e81b7',
    500: '#1f5199',
    950: '#000000',
  },
}
SCSS
$custom: #1f5199;
$custom-light: #6e81b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5199",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 215.41,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44237,
    "c": 0.1294,
    "h": 258.1
  },
  "luminance": 0.08476
}

Semantic roles & 50–950 ramp

primary
#1F5199
secondary
#C09454
accent
#A33FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F5199

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

Preview Lab → · Contrast checker → · Palette generator →

#1F5199 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva