#1B145D#1B145D

#1B145D is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.0% C 0.123 H 277.8°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#1B145D
RGBrgb(27, 20, 93)
HSLhsl(246, 65%, 22%)
HSVhsv(246, 78%, 36%)
CMYKcmyk(71%, 78.5%, 0%, 63.5%)
CIE-LABlab(12.76, 28.18, -42.16)
CIE-LCHlch(12.76, 50.71, 303.77°)
OKLaboklab(26.01% 0.0167 -0.1217)
OKLCHoklch(26.01% 0.123 277.8)
XYZxyz(2.6773, 1.5234, 10.5068)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B145D #565D14
analogous
#14325D #1B145D #3F145D
triadic
#1B145D #5D1B14 #145D1B
tetradic
#1B145D #5D1432 #565D14 #145D3F
square
#1B145D #5D1432 #565D14 #145D3F
split-complementary
#1B145D #5D3F14 #325D14
monochromatic
#070519 #0C092B #1B145D #2A1F8F #382AC2

Accessibility & contrast

On white

16.09
#1B145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B145D
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B145D#FFFFFF#000000##FFFFFF
##1B145D1.0016.091.3016.09
#FFFFFF16.091.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1b145d;
/* rgb */ color: rgb(27, 20, 93);
/* oklch */ color: oklch(26.0% 0.123 277.8);
Tailwind
colors: {
  custom: {
    50: '#62538c',
    500: '#1b145d',
    950: '#000000',
  },
}
SCSS
$custom: #1b145d;
$custom-light: #62538c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b145d",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 245.753,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26008,
    "c": 0.1229,
    "h": 277.8
  },
  "luminance": 0.01524
}

Semantic roles & 50–950 ramp

primary
#1B145D
secondary
#8C9538
accent
#E840D8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B145D

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

Preview Lab → · Contrast checker → · Palette generator →

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