#1B125D#1B125D

#1B125D is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.7% C 0.125 H 278.3°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#1B125D
RGBrgb(27, 18, 93)
HSLhsl(247, 68%, 22%)
HSVhsv(247, 81%, 36%)
CMYKcmyk(71%, 80.6%, 0%, 63.5%)
CIE-LABlab(12.32, 29.40, -42.87)
CIE-LCHlch(12.32, 51.98, 304.45°)
OKLaboklab(25.7% 0.0181 -0.1238)
OKLCHoklch(25.7% 0.125 278.3)
XYZxyz(2.6434, 1.4557, 10.4955)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B125D #545D12
analogous
#122F5D #1B125D #41125D
triadic
#1B125D #5D1B12 #125D1B
tetradic
#1B125D #5D122F #545D12 #125D41
square
#1B125D #5D122F #545D12 #125D41
split-complementary
#1B125D #5D4112 #2F5D12
monochromatic
#07051A #0C082A #1B125D #2A1C90 #3926C4

Accessibility & contrast

On white

16.26
#1B125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B125D
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B125D#FFFFFF#000000##FFFFFF
##1B125D1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001D5C
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1b125d;
/* rgb */ color: rgb(27, 18, 93);
/* oklch */ color: oklch(25.7% 0.125 278.3);
Tailwind
colors: {
  custom: {
    50: '#62518c',
    500: '#1b125d',
    950: '#000000',
  },
}
SCSS
$custom: #1b125d;
$custom-light: #62518c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b125d",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 247.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25703,
    "c": 0.12513,
    "h": 278.3
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#1B125D
secondary
#8A9535
accent
#EA3DD6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B125D

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

Preview Lab → · Contrast checker → · Palette generator →

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