#1F1773#1F1773

#1F1773 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.148 H 276.0°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#1F1773
RGBrgb(31, 23, 115)
HSLhsl(245, 67%, 27%)
HSVhsv(245, 80%, 45%)
CMYKcmyk(73%, 80%, 0%, 54.9%)
CIE-LABlab(16.21, 34.56, -50.92)
CIE-LCHlch(16.21, 61.54, 304.17°)
OKLaboklab(29.28% 0.0155 -0.1472)
OKLCHoklch(29.28% 0.148 276)
XYZxyz(3.9650, 2.1415, 16.4207)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1773 #6B7317
analogous
#173D73 #1F1773 #4D1773
triadic
#1F1773 #731F17 #17731F
tetradic
#1F1773 #73173D #6B7317 #17734D
square
#1F1773 #73173D #6B7317 #17734D
split-complementary
#1F1773 #734D17 #3D7317
monochromatic
#07051A #110D40 #1F1773 #2D21A6 #3D2FD5

Accessibility & contrast

On white

14.70
#1F1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1773
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1773#FFFFFF#000000##FFFFFF
##1F17731.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002471
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1773;
/* rgb */ color: rgb(31, 23, 115);
/* oklch */ color: oklch(29.3% 0.148 276.0);
Tailwind
colors: {
  custom: {
    50: '#69569c',
    500: '#1f1773',
    950: '#000000',
  },
}
SCSS
$custom: #1f1773;
$custom-light: #69569c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1773",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 245.217,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29278,
    "c": 0.148,
    "h": 276
  },
  "luminance": 0.02142
}

Semantic roles & 50–950 ramp

primary
#1F1773
secondary
#9FA93D
accent
#EA3EDB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1773

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

Preview Lab → · Contrast checker → · Palette generator →

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