#1F1073#1F1073

#1F1073 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.4% C 0.154 H 277.0°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#1F1073
RGBrgb(31, 16, 115)
HSLhsl(249, 76%, 26%)
HSVhsv(249, 86%, 45%)
CMYKcmyk(73%, 86.1%, 0%, 54.9%)
CIE-LABlab(14.95, 38.22, -53.01)
CIE-LCHlch(14.95, 65.35, 305.79°)
OKLaboklab(28.4% 0.0188 -0.1532)
OKLCHoklch(28.4% 0.154 277)
XYZxyz(3.8439, 1.8993, 16.3804)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1073 #647310
analogous
#103273 #1F1073 #501073
triadic
#1F1073 #731F10 #10731F
tetradic
#1F1073 #731032 #647310 #107350
square
#1F1073 #731032 #647310 #107350
split-complementary
#1F1073 #735010 #327310
monochromatic
#07041B #11093D #1F1073 #2D17A9 #3C1FDE

Accessibility & contrast

On white

15.22
#1F1073 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F1073 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1073
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1073#FFFFFF#000000##FFFFFF
##1F10731.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002976
Deuteranopia (green-blind)
#002171
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1073;
/* rgb */ color: rgb(31, 16, 115);
/* oklch */ color: oklch(28.4% 0.154 277.0);
Tailwind
colors: {
  custom: {
    50: '#6a529c',
    500: '#1f1073',
    950: '#000000',
  },
}
SCSS
$custom: #1f1073;
$custom-light: #6a529c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1073",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 115
  },
  "hsl": {
    "h": 249.091,
    "s": 75.573,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28399,
    "c": 0.1543,
    "h": 277
  },
  "luminance": 0.019
}

Semantic roles & 50–950 ramp

primary
#1F1073
secondary
#98AA34
accent
#F236D6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F1073

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

Preview Lab → · Contrast checker → · Palette generator →

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