#1B125E#1B125E

#1B125E is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.126 H 278.1°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#1B125E
RGBrgb(27, 18, 94)
HSLhsl(247, 68%, 22%)
HSVhsv(247, 81%, 37%)
CMYKcmyk(71.3%, 80.9%, 0%, 63.1%)
CIE-LABlab(12.44, 29.76, -43.35)
CIE-LCHlch(12.44, 52.58, 304.47°)
OKLaboklab(25.82% 0.0178 -0.1252)
OKLCHoklch(25.82% 0.126 278.1)
XYZxyz(2.6880, 1.4735, 10.7303)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B125E #555E12
analogous
#122F5E #1B125E #41125E
triadic
#1B125E #5E1B12 #125E1B
tetradic
#1B125E #5E122F #555E12 #125E41
square
#1B125E #5E122F #555E12 #125E41
split-complementary
#1B125E #5E4112 #2F5E12
monochromatic
#07051A #0C082B #1B125E #2A1C91 #3926C5

Accessibility & contrast

On white

16.22
#1B125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1B125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B125E
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B125E#FFFFFF#000000##FFFFFF
##1B125E1.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002360
Deuteranopia (green-blind)
#001D5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1b125e;
/* rgb */ color: rgb(27, 18, 94);
/* oklch */ color: oklch(25.8% 0.126 278.1);
Tailwind
colors: {
  custom: {
    50: '#63518d',
    500: '#1b125e',
    950: '#000000',
  },
}
SCSS
$custom: #1b125e;
$custom-light: #63518d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b125e",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 247.105,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25818,
    "c": 0.12647,
    "h": 278.1
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#1B125E
secondary
#8B9635
accent
#EB3DD6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B125E

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

Preview Lab → · Contrast checker → · Palette generator →

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