#1F1173#1F1173

#1F1173 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.5% C 0.153 H 276.9°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#1F1173
RGBrgb(31, 17, 115)
HSLhsl(249, 74%, 26%)
HSVhsv(249, 85%, 45%)
CMYKcmyk(73%, 85.2%, 0%, 54.9%)
CIE-LABlab(15.11, 37.74, -52.74)
CIE-LCHlch(15.11, 64.85, 305.59°)
OKLaboklab(28.51% 0.0183 -0.1524)
OKLCHoklch(28.51% 0.153 276.9)
XYZxyz(3.8590, 1.9297, 16.3854)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1173 #657311
analogous
#113473 #1F1173 #501173
triadic
#1F1173 #731F11 #11731F
tetradic
#1F1173 #731134 #657311 #117350
square
#1F1173 #731134 #657311 #117350
split-complementary
#1F1173 #735011 #347311
monochromatic
#07041B #11093E #1F1173 #2D19A8 #3C21DE

Accessibility & contrast

On white

15.15
#1F1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1173
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1173#FFFFFF#000000##FFFFFF
##1F11731.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A76
Deuteranopia (green-blind)
#002271
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1173;
/* rgb */ color: rgb(31, 17, 115);
/* oklch */ color: oklch(28.5% 0.153 276.9);
Tailwind
colors: {
  custom: {
    50: '#6a539c',
    500: '#1f1173',
    950: '#000000',
  },
}
SCSS
$custom: #1f1173;
$custom-light: #6a539c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1173",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 248.571,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28512,
    "c": 0.15349,
    "h": 276.9
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#1F1173
secondary
#99AA36
accent
#F137D6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F1173

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

Preview Lab → · Contrast checker → · Palette generator →

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