#1A125C#1A125C

#1A125C is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.5% C 0.124 H 277.8°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#1A125C
RGBrgb(26, 18, 92)
HSLhsl(246, 67%, 22%)
HSVhsv(246, 80%, 36%)
CMYKcmyk(71.7%, 80.4%, 0%, 63.9%)
CIE-LABlab(12.12, 28.93, -42.53)
CIE-LCHlch(12.12, 51.44, 304.22°)
OKLaboklab(25.5% 0.0168 -0.1229)
OKLCHoklch(25.5% 0.124 277.8)
XYZxyz(2.5735, 1.4247, 10.2625)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A125C #545C12
analogous
#122F5C #1A125C #3F125C
triadic
#1A125C #5C1A12 #125C1A
tetradic
#1A125C #5C122F #545C12 #125C3F
square
#1A125C #5C122F #545C12 #125C3F
split-complementary
#1A125C #5C3F12 #2F5C12
monochromatic
#07051A #0C0829 #1A125C #281C8F #3726C2

Accessibility & contrast

On white

16.34
#1A125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A125C
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A125C#FFFFFF#000000##FFFFFF
##1A125C1.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001D5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1a125c;
/* rgb */ color: rgb(26, 18, 92);
/* oklch */ color: oklch(25.5% 0.124 277.8);
Tailwind
colors: {
  custom: {
    50: '#62518b',
    500: '#1a125c',
    950: '#000000',
  },
}
SCSS
$custom: #1a125c;
$custom-light: #62518b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a125c",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 246.486,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25503,
    "c": 0.12401,
    "h": 277.8
  },
  "luminance": 0.01425
}

Semantic roles & 50–950 ramp

primary
#1A125C
secondary
#8A9435
accent
#EA3ED8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1A125C

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

Preview Lab → · Contrast checker → · Palette generator →

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