#1B188A#1B188A

#1B188A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.177 H 271.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#1B188A
RGBrgb(27, 24, 138)
HSLhsl(242, 70%, 32%)
HSVhsv(242, 83%, 54%)
CMYKcmyk(80.4%, 82.6%, 0%, 45.9%)
CIE-LABlab(18.89, 41.41, -61.13)
CIE-LCHlch(18.89, 73.84, 304.11°)
OKLaboklab(31.88% 0.0041 -0.1769)
OKLCHoklch(31.88% 0.177 271.3)
XYZxyz(5.3645, 2.7207, 24.2822)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B188A #878A18
analogous
#184E8A #1B188A #54188A
triadic
#1B188A #8A1B18 #188A1B
tetradic
#1B188A #8A184E #878A18 #188A54
square
#1B188A #8A184E #878A18 #188A54
split-complementary
#1B188A #8A5418 #4E8A18
monochromatic
#070622 #110F56 #1B188A #2521BE #433FDE

Accessibility & contrast

On white

13.60
#1B188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B188A
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B188A#FFFFFF#000000##FFFFFF
##1B188A1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b188a;
/* rgb */ color: rgb(27, 24, 138);
/* oklch */ color: oklch(31.9% 0.177 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e58ad',
    500: '#1b188a',
    950: '#000000',
  },
}
SCSS
$custom: #1b188a;
$custom-light: #6e58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b188a",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 241.579,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31883,
    "c": 0.177,
    "h": 271.3
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#1B188A
secondary
#BABD40
accent
#ED3BE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1B188A

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

Preview Lab → · Contrast checker → · Palette generator →

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