#1F4B9C#1F4B9C

#1F4B9C is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.1% C 0.141 H 261.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#1F4B9C
RGBrgb(31, 75, 156)
HSLhsl(219, 67%, 37%)
HSVhsv(219, 80%, 61%)
CMYKcmyk(80.1%, 51.9%, 0%, 38.8%)
CIE-LABlab(33.40, 15.64, -48.43)
CIE-LCHlch(33.40, 50.90, 287.90°)
OKLaboklab(43.11% -0.0213 -0.1394)
OKLCHoklch(43.11% 0.141 261.3)
XYZxyz(9.0797, 7.7227, 32.4581)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B9C #9C701F
analogous
#1F8A9C #1F4B9C #321F9C
triadic
#1F4B9C #9C1F4B #4B9C1F
tetradic
#1F4B9C #9C1F8A #9C701F #1F9C32
square
#1F4B9C #9C1F8A #9C701F #1F9C32
split-complementary
#1F4B9C #9C321F #8A9C1F
monochromatic
#0B1A36 #153269 #1F4B9C #2964CF #5887DE

Accessibility & contrast

On white

8.25
#1F4B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4B9C
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B9C#FFFFFF#000000##FFFFFF
##1F4B9C1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16559F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#005F6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4b9c;
/* rgb */ color: rgb(31, 75, 156);
/* oklch */ color: oklch(43.1% 0.141 261.3);
Tailwind
colors: {
  custom: {
    50: '#6f7cba',
    500: '#1f4b9c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b9c;
$custom-light: #6f7cba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b9c",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 156
  },
  "hsl": {
    "h": 218.88,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4311,
    "c": 0.14107,
    "h": 261.3
  },
  "luminance": 0.07724
}

Semantic roles & 50–950 ramp

primary
#1F4B9C
secondary
#C19B55
accent
#AD3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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