#1F2671#1F2671

#1F2671 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.128 H 272.5°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#1F2671
RGBrgb(31, 38, 113)
HSLhsl(235, 57%, 28%)
HSVhsv(235, 73%, 44%)
CMYKcmyk(72.6%, 66.4%, 0%, 55.7%)
CIE-LABlab(19.51, 24.22, -44.20)
CIE-LCHlch(19.51, 50.40, 298.73°)
OKLaboklab(31.59% 0.0057 -0.1276)
OKLCHoklch(31.59% 0.128 272.5)
XYZxyz(4.2378, 2.8694, 15.9501)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2671 #716A1F
analogous
#1F4F71 #1F2671 #411F71
triadic
#1F2671 #711F26 #26711F
tetradic
#1F2671 #711F4F #716A1F #1F7141
square
#1F2671 #711F4F #716A1F #1F7141
split-complementary
#1F2671 #71411F #4F711F
monochromatic
#070818 #121641 #1F2671 #2C36A1 #404CCB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F2671#FFFFFF#000000##FFFFFF
##1F26711.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)
#003373
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2671;
/* rgb */ color: rgb(31, 38, 113);
/* oklch */ color: oklch(31.6% 0.128 272.5);
Tailwind
colors: {
  custom: {
    50: '#67609b',
    500: '#1f2671',
    950: '#000000',
  },
}
SCSS
$custom: #1f2671;
$custom-light: #67609b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2671",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 234.878,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31588,
    "c": 0.12772,
    "h": 272.5
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#1F2671
secondary
#A59D47
accent
#D348E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2671

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

Preview Lab → · Contrast checker → · Palette generator →

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