#1F2139#1F2139

#1F2139 is a dark, muted blue. Relative luminance 0.017; OKLCH L 25.8% C 0.045 H 279.1°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#1F2139
RGBrgb(31, 33, 57)
HSLhsl(235, 30%, 17%)
HSVhsv(235, 46%, 22%)
CMYKcmyk(45.6%, 42.1%, 0%, 77.6%)
CIE-LABlab(13.68, 6.51, -15.85)
CIE-LCHlch(13.68, 17.13, 292.35°)
OKLaboklab(25.83% 0.0071 -0.0445)
OKLCHoklch(25.83% 0.045 279.1)
XYZxyz(1.8472, 1.6744, 4.0960)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2139 #39371F
analogous
#1F2E39 #1F2139 #2A1F39
triadic
#1F2139 #391F21 #21391F
tetradic
#1F2139 #391F2E #39371F #1F392A
square
#1F2139 #391F2E #39371F #1F392A
split-complementary
#1F2139 #392A1F #2E391F
monochromatic
#0B0B14 #0B0B14 #1F2139 #353861 #4A4F88

Accessibility & contrast

On white

15.73
#1F2139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1F2139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2139
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2139#FFFFFF#000000##FFFFFF
##1F21391.0015.731.3315.73
#FFFFFF15.731.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19243A
Deuteranopia (green-blind)
#172238
Tritanopia (blue-blind)
#17262A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f2139;
/* rgb */ color: rgb(31, 33, 57);
/* oklch */ color: oklch(25.8% 0.045 279.1);
Tailwind
colors: {
  custom: {
    50: '#5c5c6f',
    500: '#1f2139',
    950: '#000000',
  },
}
SCSS
$custom: #1f2139;
$custom-light: #5c5c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2139",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 57
  },
  "hsl": {
    "h": 235.385,
    "s": 29.545,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25828,
    "c": 0.04502,
    "h": 279.1
  },
  "luminance": 0.01674
}

Semantic roles & 50–950 ramp

primary
#1F2139
secondary
#6C6A47
accent
#BE62C6
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#040407
muted
#79797A

Preview Lab

Preview with #1F2139

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

Preview Lab → · Contrast checker → · Palette generator →

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