#1F4A86#1F4A86

#1F4A86 is a dark, moderate cyan. Relative luminance 0.069; OKLCH L 41.2% C 0.111 H 257.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#1F4A86
RGBrgb(31, 74, 134)
HSLhsl(215, 62%, 32%)
HSVhsv(215, 77%, 53%)
CMYKcmyk(76.9%, 44.8%, 0%, 47.5%)
CIE-LABlab(31.60, 7.51, -37.90)
CIE-LCHlch(31.60, 38.63, 281.22°)
OKLaboklab(41.25% -0.0242 -0.1085)
OKLCHoklch(41.25% 0.111 257.4)
XYZxyz(7.3154, 6.9093, 23.4977)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A86 #865B1F
analogous
#1F7E86 #1F4A86 #271F86
triadic
#1F4A86 #861F4A #4A861F
tetradic
#1F4A86 #861F7E #865B1F #1F8627
square
#1F4A86 #861F7E #865B1F #1F8627
split-complementary
#1F4A86 #86271F #7E861F
monochromatic
#081323 #142F54 #1F4A86 #2A65B8 #4A84D5

Accessibility & contrast

On white

8.82
#1F4A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1F4A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A86
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A86#FFFFFF#000000##FFFFFF
##1F4A861.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4F88
Deuteranopia (green-blind)
#194685
Tritanopia (blue-blind)
#005861
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4a86;
/* rgb */ color: rgb(31, 74, 134);
/* oklch */ color: oklch(41.2% 0.111 257.4);
Tailwind
colors: {
  custom: {
    50: '#6a7caa',
    500: '#1f4a86',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a86;
$custom-light: #6a7caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a86",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 134
  },
  "hsl": {
    "h": 214.951,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41246,
    "c": 0.11113,
    "h": 257.4
  },
  "luminance": 0.0691
}

Semantic roles & 50–950 ramp

primary
#1F4A86
secondary
#B88A49
accent
#A142E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4A86

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

Preview Lab → · Contrast checker → · Palette generator →

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