#1B145B#1B145B

#1B145B is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.120 H 278.2°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#1B145B
RGBrgb(27, 20, 91)
HSLhsl(246, 64%, 22%)
HSVhsv(246, 78%, 36%)
CMYKcmyk(70.3%, 78%, 0%, 64.3%)
CIE-LABlab(12.53, 27.47, -41.18)
CIE-LCHlch(12.53, 49.50, 303.70°)
OKLaboklab(25.78% 0.0172 -0.1189)
OKLCHoklch(25.78% 0.12 278.2)
XYZxyz(2.5899, 1.4884, 10.0463)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B145B #545B14
analogous
#14315B #1B145B #3F145B
triadic
#1B145B #5B1B14 #145B1B
tetradic
#1B145B #5B1431 #545B14 #145B3F
square
#1B145B #5B1431 #545B14 #145B3F
split-complementary
#1B145B #5B3F14 #315B14
monochromatic
#070619 #0C0929 #1B145B #2A1F8D #392ABF

Accessibility & contrast

On white

16.18
#1B145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1B145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B145B
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B145B#FFFFFF#000000##FFFFFF
##1B145B1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1b145b;
/* rgb */ color: rgb(27, 20, 91);
/* oklch */ color: oklch(25.8% 0.120 278.2);
Tailwind
colors: {
  custom: {
    50: '#62528a',
    500: '#1b145b',
    950: '#000000',
  },
}
SCSS
$custom: #1b145b;
$custom-light: #62528a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b145b",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 245.915,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25784,
    "c": 0.12013,
    "h": 278.2
  },
  "luminance": 0.01489
}

Semantic roles & 50–950 ramp

primary
#1B145B
secondary
#8A9338
accent
#E741D7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B145B

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

Preview Lab → · Contrast checker → · Palette generator →

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