#1F2174#1F2174

#1F2174 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.138 H 273.8°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2174
RGBrgb(31, 33, 116)
HSLhsl(239, 58%, 29%)
HSVhsv(239, 73%, 45%)
CMYKcmyk(73.3%, 71.6%, 0%, 54.5%)
CIE-LABlab(18.54, 28.74, -47.73)
CIE-LCHlch(18.54, 55.71, 301.05°)
OKLaboklab(30.97% 0.0091 -0.1379)
OKLCHoklch(30.97% 0.138 273.8)
XYZxyz(4.2603, 2.6396, 16.8046)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2174 #74721F
analogous
#1F4C74 #1F2174 #481F74
triadic
#1F2174 #741F21 #21741F
tetradic
#1F2174 #741F4C #74721F #1F7448
square
#1F2174 #741F4C #74721F #1F7448
split-complementary
#1F2174 #74481F #4C741F
monochromatic
#060718 #121344 #1F2174 #2C2FA4 #4144CC

Accessibility & contrast

On white

13.74
#1F2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2174
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2174#FFFFFF#000000##FFFFFF
##1F21741.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2174;
/* rgb */ color: rgb(31, 33, 116);
/* oklch */ color: oklch(31.0% 0.138 273.8);
Tailwind
colors: {
  custom: {
    50: '#685d9d',
    500: '#1f2174',
    950: '#000000',
  },
}
SCSS
$custom: #1f2174;
$custom-light: #685d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2174",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 238.588,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30968,
    "c": 0.13825,
    "h": 273.8
  },
  "luminance": 0.0264
}

Semantic roles & 50–950 ramp

primary
#1F2174
secondary
#A8A547
accent
#DD47E1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2174

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

Preview Lab → · Contrast checker → · Palette generator →

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