#1F337D#1F337D

#1F337D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.128 H 267.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#1F337D
RGBrgb(31, 51, 125)
HSLhsl(227, 60%, 31%)
HSVhsv(227, 75%, 49%)
CMYKcmyk(75.2%, 59.2%, 0%, 51%)
CIE-LABlab(24.13, 19.84, -44.34)
CIE-LCHlch(24.13, 48.57, 294.11°)
OKLaboklab(35.34% -0.005 -0.1278)
OKLCHoklch(35.34% 0.128 267.8)
XYZxyz(5.4493, 4.1391, 19.9098)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F337D #7D691F
analogous
#1F627D #1F337D #3A1F7D
triadic
#1F337D #7D1F33 #337D1F
tetradic
#1F337D #7D1F62 #7D691F #1F7D3A
square
#1F337D #7D1F62 #7D691F #1F7D3A
split-complementary
#1F337D #7D3A1F #627D1F
monochromatic
#070B1B #131F4C #1F337D #2B47AE #4563D1

Accessibility & contrast

On white

11.49
#1F337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F337D
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F337D#FFFFFF#000000##FFFFFF
##1F337D1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f337d;
/* rgb */ color: rgb(31, 51, 125);
/* oklch */ color: oklch(35.3% 0.128 267.8);
Tailwind
colors: {
  custom: {
    50: '#696aa3',
    500: '#1f337d',
    950: '#000000',
  },
}
SCSS
$custom: #1f337d;
$custom-light: #696aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f337d",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 227.234,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35337,
    "c": 0.12793,
    "h": 267.8
  },
  "luminance": 0.0414
}

Semantic roles & 50–950 ramp

primary
#1F337D
secondary
#B09A48
accent
#C244E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F337D

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

Preview Lab → · Contrast checker → · Palette generator →

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