#1A125E#1A125E

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

Color values

HEX#1A125E
RGBrgb(26, 18, 94)
HSLhsl(246, 68%, 22%)
HSVhsv(246, 81%, 37%)
CMYKcmyk(72.3%, 80.9%, 0%, 63.1%)
CIE-LABlab(12.35, 29.64, -43.49)
CIE-LCHlch(12.35, 52.63, 304.27°)
OKLaboklab(25.74% 0.0163 -0.1257)
OKLCHoklch(25.74% 0.127 277.4)
XYZxyz(2.6620, 1.4601, 10.7291)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A125E #565E12
analogous
#12305E #1A125E #40125E
triadic
#1A125E #5E1A12 #125E1A
tetradic
#1A125E #5E1230 #565E12 #125E40
square
#1A125E #5E1230 #565E12 #125E40
split-complementary
#1A125E #5E4012 #305E12
monochromatic
#07051A #0C082B #1A125E #281C91 #3626C5

Accessibility & contrast

On white

16.25
#1A125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A125E
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A125E#FFFFFF#000000##FFFFFF
##1A125E1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.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: #1a125e;
/* rgb */ color: rgb(26, 18, 94);
/* oklch */ color: oklch(25.7% 0.127 277.4);
Tailwind
colors: {
  custom: {
    50: '#62518d',
    500: '#1a125e',
    950: '#000000',
  },
}
SCSS
$custom: #1a125e;
$custom-light: #62518d;
$custom-dark: #000000;
JSON
{
  "hex": "#1a125e",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 246.316,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25735,
    "c": 0.12671,
    "h": 277.4
  },
  "luminance": 0.0146
}

Semantic roles & 50–950 ramp

primary
#1A125E
secondary
#8C9635
accent
#EB3DD8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1A125E

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

Preview Lab → · Contrast checker → · Palette generator →

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