#1F2073#1F2073

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

Color values

HEX#1F2073
RGBrgb(31, 32, 115)
HSLhsl(239, 58%, 29%)
HSVhsv(239, 73%, 45%)
CMYKcmyk(73%, 72.2%, 0%, 54.9%)
CIE-LABlab(18.20, 29.03, -47.65)
CIE-LCHlch(18.20, 55.79, 301.35°)
OKLaboklab(30.69% 0.0099 -0.1377)
OKLCHoklch(30.69% 0.138 274.1)
XYZxyz(4.1751, 2.5617, 16.4908)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2073 #73721F
analogous
#1F4A73 #1F2073 #481F73
triadic
#1F2073 #731F20 #20731F
tetradic
#1F2073 #731F4A #73721F #1F7348
square
#1F2073 #731F4A #73721F #1F7348
split-complementary
#1F2073 #73481F #4A731F
monochromatic
#060718 #121343 #1F2073 #2C2DA3 #4142CC

Accessibility & contrast

On white

13.89
#1F2073 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F2073 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2073
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2073#FFFFFF#000000##FFFFFF
##1F20731.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f2073;
/* rgb */ color: rgb(31, 32, 115);
/* oklch */ color: oklch(30.7% 0.138 274.1);
Tailwind
colors: {
  custom: {
    50: '#685c9c',
    500: '#1f2073',
    950: '#000000',
  },
}
SCSS
$custom: #1f2073;
$custom-light: #685c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2073",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 115
  },
  "hsl": {
    "h": 239.286,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30689,
    "c": 0.13808,
    "h": 274.1
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#1F2073
secondary
#A7A647
accent
#DF47E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2073

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

Preview Lab → · Contrast checker → · Palette generator →

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