#1B1874#1B1874

#1B1874 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.149 H 273.5°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#1B1874
RGBrgb(27, 24, 116)
HSLhsl(242, 66%, 27%)
HSVhsv(242, 79%, 45%)
CMYKcmyk(76.7%, 79.3%, 0%, 54.5%)
CIE-LABlab(16.24, 33.93, -51.53)
CIE-LCHlch(16.24, 61.70, 303.37°)
OKLaboklab(29.25% 0.0092 -0.1491)
OKLCHoklch(29.25% 0.149 273.5)
XYZxyz(3.9300, 2.1468, 16.7269)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1874 #717418
analogous
#184374 #1B1874 #491874
triadic
#1B1874 #741B18 #18741B
tetradic
#1B1874 #741843 #717418 #187449
square
#1B1874 #741843 #717418 #187449
split-complementary
#1B1874 #744918 #437418
monochromatic
#060519 #0F0E41 #1B1874 #2722A7 #3732D5

Accessibility & contrast

On white

14.69
#1B1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1B1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1874
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1874#FFFFFF#000000##FFFFFF
##1B18741.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b1874;
/* rgb */ color: rgb(27, 24, 116);
/* oklch */ color: oklch(29.3% 0.149 273.5);
Tailwind
colors: {
  custom: {
    50: '#68569d',
    500: '#1b1874',
    950: '#000000',
  },
}
SCSS
$custom: #1b1874;
$custom-light: #68569d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1874",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 241.957,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29254,
    "c": 0.14936,
    "h": 273.5
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#1B1874
secondary
#A6A93F
accent
#E93FE3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B1874

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

Preview Lab → · Contrast checker → · Palette generator →

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