#1F1B73#1F1B73

#1F1B73 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.144 H 275.3°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#1F1B73
RGBrgb(31, 27, 115)
HSLhsl(243, 62%, 28%)
HSVhsv(243, 77%, 45%)
CMYKcmyk(73%, 76.5%, 0%, 54.9%)
CIE-LABlab(17.05, 32.19, -49.54)
CIE-LCHlch(17.05, 59.08, 303.02°)
OKLaboklab(29.87% 0.0132 -0.1432)
OKLCHoklch(29.87% 0.144 275.3)
XYZxyz(4.0505, 2.3126, 16.4492)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1B73 #6F731B
analogous
#1B4373 #1F1B73 #4B1B73
triadic
#1F1B73 #731F1B #1B731F
tetradic
#1F1B73 #731B43 #6F731B #1B734B
square
#1F1B73 #731B43 #6F731B #1B734B
split-complementary
#1F1B73 #734B1B #43731B
monochromatic
#070619 #120F41 #1F1B73 #2C27A5 #3F38D0

Accessibility & contrast

On white

14.36
#1F1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F1B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1B73
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1B73#FFFFFF#000000##FFFFFF
##1F1B731.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002671
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1b73;
/* rgb */ color: rgb(31, 27, 115);
/* oklch */ color: oklch(29.9% 0.144 275.3);
Tailwind
colors: {
  custom: {
    50: '#69599c',
    500: '#1f1b73',
    950: '#000000',
  },
}
SCSS
$custom: #1f1b73;
$custom-light: #69599c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1b73",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 242.727,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29869,
    "c": 0.14381,
    "h": 275.3
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#1F1B73
secondary
#A3A842
accent
#E543DE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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