#1F4B9F#1F4B9F

#1F4B9F is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.145 H 261.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#1F4B9F
RGBrgb(31, 75, 159)
HSLhsl(219, 67%, 37%)
HSVhsv(219, 81%, 62%)
CMYKcmyk(80.5%, 52.8%, 0%, 37.6%)
CIE-LABlab(33.62, 16.84, -49.89)
CIE-LCHlch(33.62, 52.66, 288.65°)
OKLaboklab(43.35% -0.021 -0.1437)
OKLCHoklch(43.35% 0.145 261.7)
XYZxyz(9.3369, 7.8256, 33.8126)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B9F #9F731F
analogous
#1F8B9F #1F4B9F #331F9F
triadic
#1F4B9F #9F1F4B #4B9F1F
tetradic
#1F4B9F #9F1F8B #9F731F #1F9F33
square
#1F4B9F #9F1F8B #9F731F #1F9F33
split-complementary
#1F4B9F #9F331F #8B9F1F
monochromatic
#0B1B39 #15336C #1F4B9F #2963D2 #5A87DF

Accessibility & contrast

On white

8.19
#1F4B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F4B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B9F
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B9F#FFFFFF#000000##FFFFFF
##1F4B9F1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1055A2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4b9f;
/* rgb */ color: rgb(31, 75, 159);
/* oklch */ color: oklch(43.3% 0.145 261.7);
Tailwind
colors: {
  custom: {
    50: '#707cbc',
    500: '#1f4b9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b9f;
$custom-light: #707cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b9f",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 159
  },
  "hsl": {
    "h": 219.375,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43346,
    "c": 0.14526,
    "h": 261.7
  },
  "luminance": 0.07827
}

Semantic roles & 50–950 ramp

primary
#1F4B9F
secondary
#C39E57
accent
#AF3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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