#1B148C#1B148C

#1B148C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.183 H 271.5°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#1B148C
RGBrgb(27, 20, 140)
HSLhsl(244, 75%, 31%)
HSVhsv(244, 86%, 55%)
CMYKcmyk(80.7%, 85.7%, 0%, 45.1%)
CIE-LABlab(18.48, 44.00, -63.06)
CIE-LCHlch(18.48, 76.90, 304.90°)
OKLaboklab(31.67% 0.0046 -0.1825)
OKLCHoklch(31.67% 0.183 271.5)
XYZxyz(5.4342, 2.6262, 25.0264)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B148C #858C14
analogous
#14498C #1B148C #57148C
triadic
#1B148C #8C1B14 #148C1B
tetradic
#1B148C #8C1449 #858C14 #148C57
square
#1B148C #8C1449 #858C14 #148C57
split-complementary
#1B148C #8C5714 #498C14
monochromatic
#060521 #110C56 #1B148C #251CC2 #4238E3

Accessibility & contrast

On white

13.77
#1B148C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1B148C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B148C
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B148C#FFFFFF#000000##FFFFFF
##1B148C1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b148c;
/* rgb */ color: rgb(27, 20, 140);
/* oklch */ color: oklch(31.7% 0.183 271.5);
Tailwind
colors: {
  custom: {
    50: '#6f56af',
    500: '#1b148c',
    950: '#000000',
  },
}
SCSS
$custom: #1b148c;
$custom-light: #6f56af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b148c",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 140
  },
  "hsl": {
    "h": 243.5,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31672,
    "c": 0.18252,
    "h": 271.5
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#1B148C
secondary
#B8C03C
accent
#F236E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B148C

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

Preview Lab → · Contrast checker → · Palette generator →

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