#1B42AA#1B42AA

#1B42AA is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.173 H 264.4°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#1B42AA
RGBrgb(27, 66, 170)
HSLhsl(224, 73%, 39%)
HSVhsv(224, 84%, 67%)
CMYKcmyk(84.1%, 61.2%, 0%, 33.3%)
CIE-LABlab(31.88, 26.92, -59.33)
CIE-LCHlch(31.88, 65.15, 294.40°)
OKLaboklab(42.27% -0.0169 -0.1717)
OKLCHoklch(42.27% 0.173 264.4)
XYZxyz(9.6533, 7.0305, 38.8707)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B42AA #AA831B
analogous
#1B89AA #1B42AA #3B1BAA
triadic
#1B42AA #AA1B42 #42AA1B
tetradic
#1B42AA #AA1B89 #AA831B #1BAA3B
square
#1B42AA #AA1B89 #AA831B #1BAA3B
split-complementary
#1B42AA #AA3B1B #89AA1B
monochromatic
#0A1940 #132D75 #1B42AA #2658DC #5B80E5

Accessibility & contrast

On white

8.73
#1B42AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1B42AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B42AA
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B42AA#FFFFFF#000000##FFFFFF
##1B42AA1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005D6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1b42aa;
/* rgb */ color: rgb(27, 66, 170);
/* oklch */ color: oklch(42.3% 0.173 264.4);
Tailwind
colors: {
  custom: {
    50: '#7275c4',
    500: '#1b42aa',
    950: '#000000',
  },
}
SCSS
$custom: #1b42aa;
$custom-light: #7275c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b42aa",
  "rgb": {
    "r": 27,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 223.636,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42272,
    "c": 0.17253,
    "h": 264.4
  },
  "luminance": 0.07032
}

Semantic roles & 50–950 ramp

primary
#1B42AA
secondary
#C9AA58
accent
#BD39EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1B42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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