#1F4D8B#1F4D8B

#1F4D8B is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.3% C 0.115 H 256.9°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#1F4D8B
RGBrgb(31, 77, 139)
HSLhsl(214, 64%, 33%)
HSVhsv(214, 78%, 55%)
CMYKcmyk(77.7%, 44.6%, 0%, 45.5%)
CIE-LABlab(32.84, 7.49, -38.99)
CIE-LCHlch(32.84, 39.70, 280.88°)
OKLaboklab(42.31% -0.0259 -0.1116)
OKLCHoklch(42.31% 0.115 256.9)
XYZxyz(7.8774, 7.4622, 25.4463)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D8B #8B5D1F
analogous
#1F838B #1F4D8B #271F8B
triadic
#1F4D8B #8B1F4D #4D8B1F
tetradic
#1F4D8B #8B1F83 #8B5D1F #1F8B27
square
#1F4D8B #8B1F83 #8B5D1F #1F8B27
split-complementary
#1F4D8B #8B271F #838B1F
monochromatic
#091627 #143159 #1F4D8B #2A69BD #4D88D7

Accessibility & contrast

On white

8.42
#1F4D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#1F4D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D8B
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D8B#FFFFFF#000000##FFFFFF
##1F4D8B1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E538D
Deuteranopia (green-blind)
#1A498A
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4d8b;
/* rgb */ color: rgb(31, 77, 139);
/* oklch */ color: oklch(42.3% 0.115 256.9);
Tailwind
colors: {
  custom: {
    50: '#6b7ead',
    500: '#1f4d8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d8b;
$custom-light: #6b7ead;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d8b",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 139
  },
  "hsl": {
    "h": 214.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42308,
    "c": 0.1146,
    "h": 256.9
  },
  "luminance": 0.07463
}

Semantic roles & 50–950 ramp

primary
#1F4D8B
secondary
#BA8B4C
accent
#A041E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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