#1F2F4E#1F2F4E

#1F2F4E is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.8% C 0.060 H 262.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#1F2F4E
RGBrgb(31, 47, 78)
HSLhsl(220, 43%, 21%)
HSVhsv(220, 60%, 31%)
CMYKcmyk(60.3%, 39.7%, 0%, 69.4%)
CIE-LABlab(19.53, 4.08, -21.10)
CIE-LCHlch(19.53, 21.49, 280.96°)
OKLaboklab(30.76% -0.0077 -0.0597)
OKLCHoklch(30.76% 0.06 262.6)
XYZxyz(2.9563, 2.8742, 7.6052)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F4E #4E3E1F
analogous
#1F474E #1F2F4E #271F4E
triadic
#1F2F4E #4E1F2F #2F4E1F
tetradic
#1F2F4E #4E1F47 #4E3E1F #1F4E27
square
#1F2F4E #4E1F47 #4E3E1F #1F4E27
split-complementary
#1F2F4E #4E271F #474E1F
monochromatic
#090D16 #0E1522 #1F2F4E #30497A #4264A6

Accessibility & contrast

On white

13.34
#1F2F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F2F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F4E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F4E#FFFFFF#000000##FFFFFF
##1F2F4E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23324F
Deuteranopia (green-blind)
#1D2D4D
Tritanopia (blue-blind)
#05363A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2f4e;
/* rgb */ color: rgb(31, 47, 78);
/* oklch */ color: oklch(30.8% 0.060 262.6);
Tailwind
colors: {
  custom: {
    50: '#5f677f',
    500: '#1f2f4e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f4e;
$custom-light: #5f677f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f4e",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 219.574,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3076,
    "c": 0.06015,
    "h": 262.6
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#1F2F4E
secondary
#836E46
accent
#A855D3
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#05060A
muted
#797A7C

Preview Lab

Preview with #1F2F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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