#1F2173#1F2173

#1F2173 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.137 H 273.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#1F2173
RGBrgb(31, 33, 115)
HSLhsl(239, 58%, 29%)
HSVhsv(239, 73%, 45%)
CMYKcmyk(73%, 71.3%, 0%, 54.9%)
CIE-LABlab(18.44, 28.37, -47.25)
CIE-LCHlch(18.44, 55.11, 300.98°)
OKLaboklab(30.86% 0.0093 -0.1366)
OKLCHoklch(30.86% 0.137 273.9)
XYZxyz(4.2024, 2.6164, 16.4999)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2173 #73711F
analogous
#1F4B73 #1F2173 #471F73
triadic
#1F2173 #731F21 #21731F
tetradic
#1F2173 #731F4B #73711F #1F7347
square
#1F2173 #731F4B #73711F #1F7347
split-complementary
#1F2173 #73471F #4B731F
monochromatic
#060718 #121343 #1F2173 #2C2FA3 #4144CC

Accessibility & contrast

On white

13.78
#1F2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2173
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2173#FFFFFF#000000##FFFFFF
##1F21731.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f2173;
/* rgb */ color: rgb(31, 33, 115);
/* oklch */ color: oklch(30.9% 0.137 273.9);
Tailwind
colors: {
  custom: {
    50: '#685d9c',
    500: '#1f2173',
    950: '#000000',
  },
}
SCSS
$custom: #1f2173;
$custom-light: #685d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2173",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 238.571,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30864,
    "c": 0.13687,
    "h": 273.9
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#1F2173
secondary
#A7A547
accent
#DD47E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2173

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

Preview Lab → · Contrast checker → · Palette generator →

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