#1F094B#1F094B

#1F094B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.110 H 289.7°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#1F094B
RGBrgb(31, 9, 75)
HSLhsl(260, 79%, 16%)
HSVhsv(260, 88%, 29%)
CMYKcmyk(58.7%, 88%, 0%, 70.6%)
CIE-LABlab(8.95, 28.94, -36.13)
CIE-LCHlch(8.95, 46.29, 308.70°)
OKLaboklab(22.83% 0.0372 -0.1039)
OKLCHoklch(22.83% 0.11 289.7)
XYZxyz(1.9324, 0.9946, 6.7454)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F094B #354B09
analogous
#09144B #1F094B #40094B
triadic
#1F094B #4B1F09 #094B1F
tetradic
#1F094B #4B0914 #354B09 #094B40
square
#1F094B #4B0914 #354B09 #094B40
split-complementary
#1F094B #4B4009 #144B09
monochromatic
#0B031B #0B031B #1F094B #361082 #4C16B8

Accessibility & contrast

On white

17.51
#1F094B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F094B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F094B
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F094B#FFFFFF#000000##FFFFFF
##1F094B1.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00184A
Tritanopia (blue-blind)
#0E1C2A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f094b;
/* rgb */ color: rgb(31, 9, 75);
/* oklch */ color: oklch(22.8% 0.110 289.7);
Tailwind
colors: {
  custom: {
    50: '#614b7e',
    500: '#1f094b',
    950: '#000000',
  },
}
SCSS
$custom: #1f094b;
$custom-light: #614b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f094b",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 75
  },
  "hsl": {
    "h": 260,
    "s": 78.571,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22825,
    "c": 0.11036,
    "h": 289.7
  },
  "luminance": 0.00995
}

Semantic roles & 50–950 ramp

primary
#1F094B
secondary
#688828
accent
#F533B4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1F094B

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

Preview Lab → · Contrast checker → · Palette generator →

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