#1B145A#1B145A

#1B145A is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.7% C 0.119 H 278.4°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#1B145A
RGBrgb(27, 20, 90)
HSLhsl(246, 64%, 22%)
HSVhsv(246, 78%, 35%)
CMYKcmyk(70%, 77.8%, 0%, 64.7%)
CIE-LABlab(12.42, 27.10, -40.68)
CIE-LCHlch(12.42, 48.89, 303.67°)
OKLaboklab(25.67% 0.0174 -0.1174)
OKLCHoklch(25.67% 0.119 278.4)
XYZxyz(2.5470, 1.4713, 9.8206)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B145A #535A14
analogous
#14305A #1B145A #3E145A
triadic
#1B145A #5A1B14 #145A1B
tetradic
#1B145A #5A1430 #535A14 #145A3E
square
#1B145A #5A1430 #535A14 #145A3E
split-complementary
#1B145A #5A3E14 #305A14
monochromatic
#080619 #0C0928 #1B145A #2A1F8C #392ABE

Accessibility & contrast

On white

16.22
#1B145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1B145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B145A
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B145A#FFFFFF#000000##FFFFFF
##1B145A1.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#001D59
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1b145a;
/* rgb */ color: rgb(27, 20, 90);
/* oklch */ color: oklch(25.7% 0.119 278.4);
Tailwind
colors: {
  custom: {
    50: '#615289',
    500: '#1b145a',
    950: '#000000',
  },
}
SCSS
$custom: #1b145a;
$custom-light: #615289;
$custom-dark: #000000;
JSON
{
  "hex": "#1b145a",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 246,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25673,
    "c": 0.11873,
    "h": 278.4
  },
  "luminance": 0.01472
}

Semantic roles & 50–950 ramp

primary
#1B145A
secondary
#899238
accent
#E741D6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B145A

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

Preview Lab → · Contrast checker → · Palette generator →

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