#1F2176#1F2176

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

Color values

HEX#1F2176
RGBrgb(31, 33, 118)
HSLhsl(239, 58%, 29%)
HSVhsv(239, 74%, 46%)
CMYKcmyk(73.7%, 72%, 0%, 53.7%)
CIE-LABlab(18.74, 29.48, -48.68)
CIE-LCHlch(18.74, 56.91, 301.20°)
OKLaboklab(31.18% 0.0089 -0.1407)
OKLCHoklch(31.18% 0.141 273.6)
XYZxyz(4.3779, 2.6866, 17.4239)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2176 #76741F
analogous
#1F4D76 #1F2176 #491F76
triadic
#1F2176 #761F21 #21761F
tetradic
#1F2176 #761F4D #76741F #1F7649
square
#1F2176 #761F4D #76741F #1F7649
split-complementary
#1F2176 #76491F #4D761F
monochromatic
#060718 #121346 #1F2176 #2C2FA6 #4245CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F2176#FFFFFF#000000##FFFFFF
##1F21761.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)
#003279
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2176;
/* rgb */ color: rgb(31, 33, 118);
/* oklch */ color: oklch(31.2% 0.141 273.6);
Tailwind
colors: {
  custom: {
    50: '#695d9e',
    500: '#1f2176',
    950: '#000000',
  },
}
SCSS
$custom: #1f2176;
$custom-light: #695d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2176",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 238.621,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31177,
    "c": 0.14101,
    "h": 273.6
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#1F2176
secondary
#AAA747
accent
#DE46E2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2176

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

Preview Lab → · Contrast checker → · Palette generator →

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