#1F2371#1F2371

#1F2371 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.132 H 273.5°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#1F2371
RGBrgb(31, 35, 113)
HSLhsl(237, 57%, 28%)
HSVhsv(237, 73%, 44%)
CMYKcmyk(72.6%, 69%, 0%, 55.7%)
CIE-LABlab(18.74, 26.28, -45.47)
CIE-LCHlch(18.74, 52.52, 300.02°)
OKLaboklab(31.02% 0.008 -0.1313)
OKLCHoklch(31.02% 0.132 273.5)
XYZxyz(4.1457, 2.6852, 15.9194)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2371 #716D1F
analogous
#1F4C71 #1F2371 #441F71
triadic
#1F2371 #711F23 #23711F
tetradic
#1F2371 #711F4C #716D1F #1F7144
square
#1F2371 #711F4C #716D1F #1F7144
split-complementary
#1F2371 #71441F #4C711F
monochromatic
#070718 #121441 #1F2371 #2C32A1 #4047CB

Accessibility & contrast

On white

13.66
#1F2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2371
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2371#FFFFFF#000000##FFFFFF
##1F23711.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2371;
/* rgb */ color: rgb(31, 35, 113);
/* oklch */ color: oklch(31.0% 0.132 273.5);
Tailwind
colors: {
  custom: {
    50: '#675e9b',
    500: '#1f2371',
    950: '#000000',
  },
}
SCSS
$custom: #1f2371;
$custom-light: #675e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2371",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 237.073,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3102,
    "c": 0.13158,
    "h": 273.5
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#1F2371
secondary
#A5A047
accent
#D948E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2371

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

Preview Lab → · Contrast checker → · Palette generator →

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