#1B145C#1B145C

#1B145C is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.122 H 278.0°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#1B145C
RGBrgb(27, 20, 92)
HSLhsl(246, 64%, 22%)
HSVhsv(246, 78%, 36%)
CMYKcmyk(70.7%, 78.3%, 0%, 63.9%)
CIE-LABlab(12.64, 27.83, -41.67)
CIE-LCHlch(12.64, 50.10, 303.74°)
OKLaboklab(25.9% 0.017 -0.1203)
OKLCHoklch(25.9% 0.122 278)
XYZxyz(2.6333, 1.5058, 10.2750)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B145C #555C14
analogous
#14315C #1B145C #3F145C
triadic
#1B145C #5C1B14 #145C1B
tetradic
#1B145C #5C1431 #555C14 #145C3F
square
#1B145C #5C1431 #555C14 #145C3F
split-complementary
#1B145C #5C3F14 #315C14
monochromatic
#070519 #0C092A #1B145C #2A1F8E #392AC1

Accessibility & contrast

On white

16.14
#1B145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B145C
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B145C#FFFFFF#000000##FFFFFF
##1B145C1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1b145c;
/* rgb */ color: rgb(27, 20, 92);
/* oklch */ color: oklch(25.9% 0.122 278.0);
Tailwind
colors: {
  custom: {
    50: '#62538b',
    500: '#1b145c',
    950: '#000000',
  },
}
SCSS
$custom: #1b145c;
$custom-light: #62538b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b145c",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 245.833,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25896,
    "c": 0.12151,
    "h": 278
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B145C

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

Preview Lab → · Contrast checker → · Palette generator →

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