#1A2D7D#1A2D7D

#1A2D7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.137 H 267.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#1A2D7D
RGBrgb(26, 45, 125)
HSLhsl(228, 66%, 30%)
HSVhsv(228, 79%, 49%)
CMYKcmyk(79.2%, 64%, 0%, 51%)
CIE-LABlab(22.22, 23.42, -47.46)
CIE-LCHlch(22.22, 52.92, 296.26°)
OKLaboklab(33.85% -0.0052 -0.1372)
OKLCHoklch(33.85% 0.137 267.8)
XYZxyz(5.0648, 3.5765, 19.8215)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2D7D #7D6A1A
analogous
#1A5F7D #1A2D7D #391A7D
triadic
#1A2D7D #7D1A2D #2D7D1A
tetradic
#1A2D7D #7D1A5F #7D6A1A #1A7D39
square
#1A2D7D #7D1A5F #7D6A1A #1A7D39
split-complementary
#1A2D7D #7D391A #5F7D1A
monochromatic
#050919 #0F1B4A #1A2D7D #253FB0 #3B59D6

Accessibility & contrast

On white

12.24
#1A2D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1A2D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2D7D
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2D7D#FFFFFF#000000##FFFFFF
##1A2D7D1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1a2d7d;
/* rgb */ color: rgb(26, 45, 125);
/* oklch */ color: oklch(33.9% 0.137 267.8);
Tailwind
colors: {
  custom: {
    50: '#6865a3',
    500: '#1a2d7d',
    950: '#000000',
  },
}
SCSS
$custom: #1a2d7d;
$custom-light: #6865a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2d7d",
  "rgb": {
    "r": 26,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 228.485,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3385,
    "c": 0.13728,
    "h": 267.8
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#1A2D7D
secondary
#B19C42
accent
#C83FE9
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1A2D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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