#1F2F52#1F2F52

#1F2F52 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.067 H 264.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1F2F52
RGBrgb(31, 47, 82)
HSLhsl(221, 45%, 22%)
HSVhsv(221, 62%, 32%)
CMYKcmyk(62.2%, 42.7%, 0%, 67.8%)
CIE-LABlab(19.77, 5.62, -23.40)
CIE-LCHlch(19.77, 24.07, 283.50°)
OKLaboklab(31.03% -0.0066 -0.0664)
OKLCHoklch(31.03% 0.067 264.3)
XYZxyz(3.1041, 2.9333, 8.3836)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F52 #52421F
analogous
#1F4952 #1F2F52 #281F52
triadic
#1F2F52 #521F2F #2F521F
tetradic
#1F2F52 #521F49 #52421F #1F5228
square
#1F2F52 #521F49 #52421F #1F5228
split-complementary
#1F2F52 #52281F #49521F
monochromatic
#080D16 #0E1626 #1F2F52 #30487E #4162AB

Accessibility & contrast

On white

13.23
#1F2F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F2F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F52
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F52#FFFFFF#000000##FFFFFF
##1F2F521.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203253
Deuteranopia (green-blind)
#1A2E51
Tritanopia (blue-blind)
#00373C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f2f52;
/* rgb */ color: rgb(31, 47, 82);
/* oklch */ color: oklch(31.0% 0.067 264.3);
Tailwind
colors: {
  custom: {
    50: '#5f6783',
    500: '#1f2f52',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f52;
$custom-light: #5f6783;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f52",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 82
  },
  "hsl": {
    "h": 221.176,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31026,
    "c": 0.06671,
    "h": 264.3
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#1F2F52
secondary
#877246
accent
#AC53D5
background
#F5F6F8
surface
#EAEBEF
border
#C6C6CA
text
#05060A
muted
#797A7C

Preview Lab

Preview with #1F2F52

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

Preview Lab → · Contrast checker → · Palette generator →

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