#1F1973#1F1973

#1F1973 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.146 H 275.6°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#1F1973
RGBrgb(31, 25, 115)
HSLhsl(244, 64%, 27%)
HSVhsv(244, 78%, 45%)
CMYKcmyk(73%, 78.3%, 0%, 54.9%)
CIE-LABlab(16.62, 33.40, -50.24)
CIE-LCHlch(16.62, 60.33, 303.61°)
OKLaboklab(29.57% 0.0143 -0.1452)
OKLCHoklch(29.57% 0.146 275.6)
XYZxyz(4.0062, 2.2240, 16.4345)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1973 #6D7319
analogous
#194073 #1F1973 #4C1973
triadic
#1F1973 #731F19 #19731F
tetradic
#1F1973 #731940 #6D7319 #19734C
square
#1F1973 #731940 #6D7319 #19734C
split-complementary
#1F1973 #734C19 #407319
monochromatic
#070519 #110E41 #1F1973 #2D24A5 #3E34D3

Accessibility & contrast

On white

14.53
#1F1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1973
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1973#FFFFFF#000000##FFFFFF
##1F19731.0014.531.4414.53
#FFFFFF14.531.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002571
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1973;
/* rgb */ color: rgb(31, 25, 115);
/* oklch */ color: oklch(29.6% 0.146 275.6);
Tailwind
colors: {
  custom: {
    50: '#69579c',
    500: '#1f1973',
    950: '#000000',
  },
}
SCSS
$custom: #1f1973;
$custom-light: #69579c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1973",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 244,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29566,
    "c": 0.14596,
    "h": 275.6
  },
  "luminance": 0.02224
}

Semantic roles & 50–950 ramp

primary
#1F1973
secondary
#A1A840
accent
#E741DC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1973

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

Preview Lab → · Contrast checker → · Palette generator →

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