#1B145F#1B145F

#1B145F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.2% C 0.126 H 277.4°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#1B145F
RGBrgb(27, 20, 95)
HSLhsl(246, 65%, 23%)
HSVhsv(246, 79%, 37%)
CMYKcmyk(71.6%, 78.9%, 0%, 62.7%)
CIE-LABlab(12.98, 28.90, -43.12)
CIE-LCHlch(12.98, 51.91, 303.83°)
OKLaboklab(26.23% 0.0163 -0.1246)
OKLCHoklch(26.23% 0.126 277.4)
XYZxyz(2.7670, 1.5593, 10.9794)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B145F #585F14
analogous
#14325F #1B145F #40145F
triadic
#1B145F #5F1B14 #145F1B
tetradic
#1B145F #5F1432 #585F14 #145F40
square
#1B145F #5F1432 #585F14 #145F40
split-complementary
#1B145F #5F4014 #325F14
monochromatic
#070519 #0D092C #1B145F #291F92 #3829C4

Accessibility & contrast

On white

16.01
#1B145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B145F
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B145F#FFFFFF#000000##FFFFFF
##1B145F1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b145f;
/* rgb */ color: rgb(27, 20, 95);
/* oklch */ color: oklch(26.2% 0.126 277.4);
Tailwind
colors: {
  custom: {
    50: '#63538d',
    500: '#1b145f',
    950: '#000000',
  },
}
SCSS
$custom: #1b145f;
$custom-light: #63538d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b145f",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 245.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26234,
    "c": 0.12563,
    "h": 277.4
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B145F

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

Preview Lab → · Contrast checker → · Palette generator →

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