#1F2E4E#1F2E4E

#1F2E4E is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.5% C 0.062 H 264.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#1F2E4E
RGBrgb(31, 46, 78)
HSLhsl(221, 43%, 21%)
HSVhsv(221, 60%, 31%)
CMYKcmyk(60.3%, 41%, 0%, 69.4%)
CIE-LABlab(19.20, 4.80, -21.62)
CIE-LCHlch(19.20, 22.15, 282.51°)
OKLaboklab(30.51% -0.0063 -0.0612)
OKLCHoklch(30.51% 0.062 264.1)
XYZxyz(2.9168, 2.7951, 7.5921)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E4E #4E3F1F
analogous
#1F464E #1F2E4E #281F4E
triadic
#1F2E4E #4E1F2E #2E4E1F
tetradic
#1F2E4E #4E1F46 #4E3F1F #1F4E28
square
#1F2E4E #4E1F46 #4E3F1F #1F4E28
split-complementary
#1F2E4E #4E281F #464E1F
monochromatic
#090D16 #0E1422 #1F2E4E #30487A #4262A6

Accessibility & contrast

On white

13.47
#1F2E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F2E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E4E
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E4E#FFFFFF#000000##FFFFFF
##1F2E4E1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21314F
Deuteranopia (green-blind)
#1B2D4D
Tritanopia (blue-blind)
#05353A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2e4e;
/* rgb */ color: rgb(31, 46, 78);
/* oklch */ color: oklch(30.5% 0.062 264.1);
Tailwind
colors: {
  custom: {
    50: '#5f6680',
    500: '#1f2e4e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e4e;
$custom-light: #5f6680;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e4e",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 78
  },
  "hsl": {
    "h": 220.851,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30505,
    "c": 0.06151,
    "h": 264.1
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#1F2E4E
secondary
#836F46
accent
#AB55D3
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#05050A
muted
#797A7C

Preview Lab

Preview with #1F2E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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