#1F3499#1F3499

#1F3499 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.166 H 268.0°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#1F3499
RGBrgb(31, 52, 153)
HSLhsl(230, 66%, 36%)
HSVhsv(230, 80%, 60%)
CMYKcmyk(79.7%, 66%, 0%, 40%)
CIE-LABlab(26.87, 30.08, -57.25)
CIE-LCHlch(26.87, 64.67, 297.72°)
OKLaboklab(38.14% -0.0058 -0.1657)
OKLCHoklch(38.14% 0.166 268)
XYZxyz(7.5408, 5.0463, 30.7074)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3499 #99841F
analogous
#1F7199 #1F3499 #471F99
triadic
#1F3499 #991F34 #34991F
tetradic
#1F3499 #991F71 #99841F #1F9947
square
#1F3499 #991F71 #99841F #1F9947
split-complementary
#1F3499 #99471F #71991F
monochromatic
#0A1133 #152366 #1F3499 #2945CC #566DDD

Accessibility & contrast

On white

10.45
#1F3499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F3499 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3499
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3499#FFFFFF#000000##FFFFFF
##1F34991.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3499;
/* rgb */ color: rgb(31, 52, 153);
/* oklch */ color: oklch(38.1% 0.166 268.0);
Tailwind
colors: {
  custom: {
    50: '#706bb8',
    500: '#1f3499',
    950: '#000000',
  },
}
SCSS
$custom: #1f3499;
$custom-light: #706bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3499",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 153
  },
  "hsl": {
    "h": 229.672,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38135,
    "c": 0.16579,
    "h": 268
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#1F3499
secondary
#C0AE54
accent
#CC3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3499

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

Preview Lab → · Contrast checker → · Palette generator →

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