#1B125A#1B125A

#1B125A is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.4% C 0.121 H 279.0°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#1B125A
RGBrgb(27, 18, 90)
HSLhsl(248, 67%, 21%)
HSVhsv(248, 80%, 35%)
CMYKcmyk(70%, 80%, 0%, 64.7%)
CIE-LABlab(11.98, 28.35, -41.41)
CIE-LCHlch(11.98, 50.19, 304.39°)
OKLaboklab(25.36% 0.0189 -0.1196)
OKLCHoklch(25.36% 0.121 279)
XYZxyz(2.5132, 1.4036, 9.8094)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B125A #515A12
analogous
#122D5A #1B125A #3F125A
triadic
#1B125A #5A1B12 #125A1B
tetradic
#1B125A #5A122D #515A12 #125A3F
square
#1B125A #5A122D #515A12 #125A3F
split-complementary
#1B125A #5A3F12 #2D5A12
monochromatic
#08051A #0C0827 #1B125A #2A1C8D #3A26C0

Accessibility & contrast

On white

16.40
#1B125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1B125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B125A
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B125A#FFFFFF#000000##FFFFFF
##1B125A1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225C
Deuteranopia (green-blind)
#001D59
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1b125a;
/* rgb */ color: rgb(27, 18, 90);
/* oklch */ color: oklch(25.4% 0.121 279.0);
Tailwind
colors: {
  custom: {
    50: '#625189',
    500: '#1b125a',
    950: '#000000',
  },
}
SCSS
$custom: #1b125a;
$custom-light: #625189;
$custom-dark: #000000;
JSON
{
  "hex": "#1b125a",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 247.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25359,
    "c": 0.12105,
    "h": 279
  },
  "luminance": 0.01404
}

Semantic roles & 50–950 ramp

primary
#1B125A
secondary
#879335
accent
#EA3ED4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B125A

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

Preview Lab → · Contrast checker → · Palette generator →

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