#1F405F#1F405F

#1F405F is a dark, moderate cyan. Relative luminance 0.048; OKLCH L 36.2% C 0.067 H 248.8°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#1F405F
RGBrgb(31, 64, 95)
HSLhsl(209, 51%, 25%)
HSVhsv(209, 67%, 37%)
CMYKcmyk(67.4%, 32.6%, 0%, 62.7%)
CIE-LABlab(26.11, -1.12, -21.97)
CIE-LCHlch(26.11, 22.00, 267.08°)
OKLaboklab(36.21% -0.024 -0.062)
OKLCHoklch(36.21% 0.067 248.8)
XYZxyz(4.4633, 4.7839, 11.5124)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F405F #5F3E1F
analogous
#1F5F5E #1F405F #1F205F
triadic
#1F405F #5F1F40 #405F1F
tetradic
#1F405F #5E1F5F #5F3E1F #205F1F
square
#1F405F #5E1F5F #5F3E1F #205F1F
split-complementary
#1F405F #5F1F20 #5F5E1F
monochromatic
#081017 #102131 #1F405F #2E5F8D #3D7EBB

Accessibility & contrast

On white

10.73
#1F405F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F405F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F405F
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F405F#FFFFFF#000000##FFFFFF
##1F405F1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334160
Deuteranopia (green-blind)
#2A3B5E
Tritanopia (blue-blind)
#00474B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f405f;
/* rgb */ color: rgb(31, 64, 95);
/* oklch */ color: oklch(36.2% 0.067 248.8);
Tailwind
colors: {
  custom: {
    50: '#62748c',
    500: '#1f405f',
    950: '#000000',
  },
}
SCSS
$custom: #1f405f;
$custom-light: #62748c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f405f",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 95
  },
  "hsl": {
    "h": 209.063,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.36213,
    "c": 0.06651,
    "h": 248.8
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#1F405F
secondary
#946C46
accent
#924EDA
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#05080C
muted
#7A7B7D

Preview Lab

Preview with #1F405F

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

Preview Lab → · Contrast checker → · Palette generator →

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