#1B034E#1B034E

#1B034E is a very dark, vivid violet. Relative luminance 0.008; OKLCH L 21.9% C 0.121 H 286.0°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#1B034E
RGBrgb(27, 3, 78)
HSLhsl(259, 93%, 16%)
HSVhsv(259, 96%, 31%)
CMYKcmyk(65.4%, 96.2%, 0%, 69.4%)
CIE-LABlab(7.66, 32.74, -40.35)
CIE-LCHlch(7.66, 51.96, 309.05°)
OKLaboklab(21.93% 0.0333 -0.1162)
OKLCHoklch(21.93% 0.121 286)
XYZxyz(1.8593, 0.8481, 7.2720)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B034E #364E03
analogous
#03104E #1B034E #40034E
triadic
#1B034E #4E1B03 #034E1B
tetradic
#1B034E #4E0310 #364E03 #034E40
square
#1B034E #4E0310 #364E03 #034E40
split-complementary
#1B034E #4E4003 #104E03
monochromatic
#0A011D #0A011D #1B034E #2F0589 #4408C4

Accessibility & contrast

On white

17.95
#1B034E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1B034E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B034E
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B034E#FFFFFF#000000##FFFFFF
##1B034E1.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001950
Deuteranopia (green-blind)
#00154D
Tritanopia (blue-blind)
#001B2B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1b034e;
/* rgb */ color: rgb(27, 3, 78);
/* oklch */ color: oklch(21.9% 0.121 286.0);
Tailwind
colors: {
  custom: {
    50: '#604881',
    500: '#1b034e',
    950: '#000000',
  },
}
SCSS
$custom: #1b034e;
$custom-light: #604881;
$custom-dark: #000000;
JSON
{
  "hex": "#1b034e",
  "rgb": {
    "r": 27,
    "g": 3,
    "b": 78
  },
  "hsl": {
    "h": 259.2,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21933,
    "c": 0.12093,
    "h": 286
  },
  "luminance": 0.00848
}

Semantic roles & 50–950 ramp

primary
#1B034E
secondary
#6B8E1E
accent
#FF29BA
background
#F6F4F7
surface
#EBE6EE
border
#C6C2C9
text
#05010A
muted
#7A777C

Preview Lab

Preview with #1B034E

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

Preview Lab → · Contrast checker → · Palette generator →

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