#1F4C8B#1F4C8B

#1F4C8B is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.1% C 0.116 H 257.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#1F4C8B
RGBrgb(31, 76, 139)
HSLhsl(215, 64%, 33%)
HSVhsv(215, 78%, 55%)
CMYKcmyk(77.7%, 45.3%, 0%, 45.5%)
CIE-LABlab(32.53, 8.17, -39.48)
CIE-LCHlch(32.53, 40.31, 281.69°)
OKLaboklab(42.07% -0.025 -0.1131)
OKLCHoklch(42.07% 0.116 257.5)
XYZxyz(7.8080, 7.3234, 25.4231)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C8B #8B5E1F
analogous
#1F828B #1F4C8B #281F8B
triadic
#1F4C8B #8B1F4C #4C8B1F
tetradic
#1F4C8B #8B1F82 #8B5E1F #1F8B28
square
#1F4C8B #8B1F82 #8B5E1F #1F8B28
split-complementary
#1F4C8B #8B281F #828B1F
monochromatic
#091527 #143159 #1F4C8B #2A67BD #4D87D7

Accessibility & contrast

On white

8.52
#1F4C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1F4C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C8B
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C8B#FFFFFF#000000##FFFFFF
##1F4C8B1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C528D
Deuteranopia (green-blind)
#17488A
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4c8b;
/* rgb */ color: rgb(31, 76, 139);
/* oklch */ color: oklch(42.1% 0.116 257.5);
Tailwind
colors: {
  custom: {
    50: '#6b7dad',
    500: '#1f4c8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c8b;
$custom-light: #6b7dad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c8b",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 215,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42072,
    "c": 0.11581,
    "h": 257.5
  },
  "luminance": 0.07324
}

Semantic roles & 50–950 ramp

primary
#1F4C8B
secondary
#BA8C4C
accent
#A241E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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