#1B125F#1B125F

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

Color values

HEX#1B125F
RGBrgb(27, 18, 95)
HSLhsl(247, 68%, 22%)
HSVhsv(247, 81%, 37%)
CMYKcmyk(71.6%, 81.1%, 0%, 62.7%)
CIE-LABlab(12.55, 30.10, -43.83)
CIE-LCHlch(12.55, 53.17, 304.49°)
OKLaboklab(25.93% 0.0176 -0.1266)
OKLCHoklch(25.93% 0.128 277.9)
XYZxyz(2.7332, 1.4916, 10.9681)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B125F #565F12
analogous
#12305F #1B125F #42125F
triadic
#1B125F #5F1B12 #125F1B
tetradic
#1B125F #5F1230 #565F12 #125F42
square
#1B125F #5F1230 #565F12 #125F42
split-complementary
#1B125F #5F4212 #305F12
monochromatic
#07051A #0C082C #1B125F #2A1C92 #3825C6

Accessibility & contrast

On white

16.17
#1B125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B125F
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B125F#FFFFFF#000000##FFFFFF
##1B125F1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001D5E
Tritanopia (blue-blind)
#002838
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1b125f;
/* rgb */ color: rgb(27, 18, 95);
/* oklch */ color: oklch(25.9% 0.128 277.9);
Tailwind
colors: {
  custom: {
    50: '#63518d',
    500: '#1b125f',
    950: '#000000',
  },
}
SCSS
$custom: #1b125f;
$custom-light: #63518d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b125f",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 247.013,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.25934,
    "c": 0.12781,
    "h": 277.9
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#1B125F
secondary
#8C9736
accent
#EB3DD7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B125F

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

Preview Lab → · Contrast checker → · Palette generator →

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