#1F4B9B#1F4B9B

#1F4B9B is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.0% C 0.140 H 261.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#1F4B9B
RGBrgb(31, 75, 155)
HSLhsl(219, 67%, 36%)
HSVhsv(219, 80%, 61%)
CMYKcmyk(80%, 51.6%, 0%, 39.2%)
CIE-LABlab(33.33, 15.24, -47.95)
CIE-LCHlch(33.33, 50.31, 287.64°)
OKLaboklab(43.03% -0.0215 -0.138)
OKLCHoklch(43.03% 0.14 261.2)
XYZxyz(8.9954, 7.6890, 32.0140)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B9B #9B6F1F
analogous
#1F899B #1F4B9B #311F9B
triadic
#1F4B9B #9B1F4B #4B9B1F
tetradic
#1F4B9B #9B1F89 #9B6F1F #1F9B31
square
#1F4B9B #9B1F89 #9B6F1F #1F9B31
split-complementary
#1F4B9B #9B311F #899B1F
monochromatic
#0B1A35 #153268 #1F4B9B #2964CE #5787DD

Accessibility & contrast

On white

8.27
#1F4B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1F4B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B9B
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B9B#FFFFFF#000000##FFFFFF
##1F4B9B1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18549E
Deuteranopia (green-blind)
#004999
Tritanopia (blue-blind)
#005E6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4b9b;
/* rgb */ color: rgb(31, 75, 155);
/* oklch */ color: oklch(43.0% 0.140 261.2);
Tailwind
colors: {
  custom: {
    50: '#6f7cb9',
    500: '#1f4b9b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b9b;
$custom-light: #6f7cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b9b",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 155
  },
  "hsl": {
    "h": 218.71,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43032,
    "c": 0.13968,
    "h": 261.2
  },
  "luminance": 0.0769
}

Semantic roles & 50–950 ramp

primary
#1F4B9B
secondary
#C19B55
accent
#AD3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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