#1B145E#1B145E

#1B145E is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.1% C 0.124 H 277.6°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#1B145E
RGBrgb(27, 20, 94)
HSLhsl(246, 65%, 22%)
HSVhsv(246, 79%, 37%)
CMYKcmyk(71.3%, 78.7%, 0%, 63.1%)
CIE-LABlab(12.87, 28.54, -42.64)
CIE-LCHlch(12.87, 51.31, 303.80°)
OKLaboklab(26.12% 0.0165 -0.1232)
OKLCHoklch(26.12% 0.124 277.6)
XYZxyz(2.7219, 1.5412, 10.7416)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B145E #575E14
analogous
#14325E #1B145E #40145E
triadic
#1B145E #5E1B14 #145E1B
tetradic
#1B145E #5E1432 #575E14 #145E40
square
#1B145E #5E1432 #575E14 #145E40
split-complementary
#1B145E #5E4014 #325E14
monochromatic
#070519 #0D092C #1B145E #291F90 #3829C3

Accessibility & contrast

On white

16.05
#1B145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#1B145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B145E
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B145E#FFFFFF#000000##FFFFFF
##1B145E1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001E5D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1b145e;
/* rgb */ color: rgb(27, 20, 94);
/* oklch */ color: oklch(26.1% 0.124 277.6);
Tailwind
colors: {
  custom: {
    50: '#62538d',
    500: '#1b145e',
    950: '#000000',
  },
}
SCSS
$custom: #1b145e;
$custom-light: #62538d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b145e",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 245.676,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26121,
    "c": 0.12426,
    "h": 277.6
  },
  "luminance": 0.01541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B145E

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

Preview Lab → · Contrast checker → · Palette generator →

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