#1B104F#1B104F

#1B104F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.108 H 282.4°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#1B104F
RGBrgb(27, 16, 79)
HSLhsl(250, 66%, 19%)
HSVhsv(250, 80%, 31%)
CMYKcmyk(65.8%, 79.7%, 0%, 69%)
CIE-LABlab(10.32, 25.69, -36.65)
CIE-LCHlch(10.32, 44.76, 305.03°)
OKLaboklab(23.81% 0.0232 -0.1056)
OKLCHoklch(23.81% 0.108 282.4)
XYZxyz(2.0481, 1.1680, 7.5131)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B104F #444F10
analogous
#10244F #1B104F #3A104F
triadic
#1B104F #4F1B10 #104F1B
tetradic
#1B104F #4F1024 #444F10 #104F3A
square
#1B104F #4F1024 #444F10 #104F3A
split-complementary
#1B104F #4F3A10 #244F10
monochromatic
#090519 #0A061C #1B104F #2C1A82 #3E25B5

Accessibility & contrast

On white

17.02
#1B104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1B104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B104F
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B104F#FFFFFF#000000##FFFFFF
##1B104F1.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#001A4E
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1b104f;
/* rgb */ color: rgb(27, 16, 79);
/* oklch */ color: oklch(23.8% 0.108 282.4);
Tailwind
colors: {
  custom: {
    50: '#5f4f81',
    500: '#1b104f',
    950: '#000000',
  },
}
SCSS
$custom: #1b104f;
$custom-light: #5f4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#1b104f",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 250.476,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23813,
    "c": 0.10817,
    "h": 282.4
  },
  "luminance": 0.01168
}

Semantic roles & 50–950 ramp

primary
#1B104F
secondary
#7A8932
accent
#E93FCB
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B104F

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

Preview Lab → · Contrast checker → · Palette generator →

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