#1B1174#1B1174

#1B1174 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.156 H 274.5°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#1B1174
RGBrgb(27, 17, 116)
HSLhsl(246, 74%, 26%)
HSVhsv(246, 85%, 45%)
CMYKcmyk(76.7%, 85.3%, 0%, 54.5%)
CIE-LABlab(14.92, 37.74, -53.71)
CIE-LCHlch(14.92, 65.64, 305.09°)
OKLaboklab(28.34% 0.0121 -0.1553)
OKLCHoklch(28.34% 0.156 274.5)
XYZxyz(3.8038, 1.8945, 16.6848)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1174 #6A7411
analogous
#113874 #1B1174 #4C1174
triadic
#1B1174 #741B11 #11741B
tetradic
#1B1174 #741138 #6A7411 #11744C
square
#1B1174 #741138 #6A7411 #11744C
split-complementary
#1B1174 #744C11 #387411
monochromatic
#06041B #0F093F #1B1174 #2719A9 #3421DE

Accessibility & contrast

On white

15.23
#1B1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1B1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1174
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1174#FFFFFF#000000##FFFFFF
##1B11741.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A77
Deuteranopia (green-blind)
#002172
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b1174;
/* rgb */ color: rgb(27, 17, 116);
/* oklch */ color: oklch(28.3% 0.156 274.5);
Tailwind
colors: {
  custom: {
    50: '#68539d',
    500: '#1b1174',
    950: '#000000',
  },
}
SCSS
$custom: #1b1174;
$custom-light: #68539d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1174",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 246.061,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28335,
    "c": 0.15578,
    "h": 274.5
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#1B1174
secondary
#9FAB36
accent
#F137DE
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1B1174

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

Preview Lab → · Contrast checker → · Palette generator →

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