#1F2E41#1F2E41

#1F2E41 is a dark, muted cyan. Relative luminance 0.026; OKLCH L 29.7% C 0.040 H 254.7°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#1F2E41
RGBrgb(31, 46, 65)
HSLhsl(214, 35%, 19%)
HSVhsv(214, 52%, 25%)
CMYKcmyk(52.3%, 29.2%, 0%, 74.5%)
CIE-LABlab(18.48, -0.02, -13.92)
CIE-LCHlch(18.48, 13.92, 269.94°)
OKLaboklab(29.71% -0.0106 -0.0388)
OKLCHoklch(29.71% 0.04 254.7)
XYZxyz(2.4959, 2.6268, 5.3755)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E41 #41321F
analogous
#1F3F41 #1F2E41 #211F41
triadic
#1F2E41 #411F2E #2E411F
tetradic
#1F2E41 #411F3F #41321F #1F4121
square
#1F2E41 #411F3F #41321F #1F4121
split-complementary
#1F2E41 #41211F #3F411F
monochromatic
#0A0F15 #0B1118 #1F2E41 #334B6A #476994

Accessibility & contrast

On white

13.77
#1F2E41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F2E41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E41
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E41#FFFFFF#000000##FFFFFF
##1F2E411.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272F42
Deuteranopia (green-blind)
#232C41
Tritanopia (blue-blind)
#113235
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f2e41;
/* rgb */ color: rgb(31, 46, 65);
/* oklch */ color: oklch(29.7% 0.040 254.7);
Tailwind
colors: {
  custom: {
    50: '#5d6675',
    500: '#1f2e41',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e41;
$custom-light: #5d6675;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e41",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 65
  },
  "hsl": {
    "h": 213.529,
    "s": 35.417,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29706,
    "c": 0.04027,
    "h": 254.7
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#1F2E41
secondary
#756147
accent
#9A5CCB
background
#F5F6F7
surface
#E9EBED
border
#C5C6C8
text
#040508
muted
#797A7B

Preview Lab

Preview with #1F2E41

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

Preview Lab → · Contrast checker → · Palette generator →

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