#1A2D7E#1A2D7E

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

Color values

HEX#1A2D7E
RGBrgb(26, 45, 126)
HSLhsl(229, 66%, 30%)
HSVhsv(229, 79%, 49%)
CMYKcmyk(79.4%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.31, 23.81, -47.94)
CIE-LCHlch(22.31, 53.53, 296.42°)
OKLaboklab(33.95% -0.0053 -0.1386)
OKLCHoklch(33.95% 0.139 267.8)
XYZxyz(5.1290, 3.6022, 20.1596)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2D7E #7E6B1A
analogous
#1A5F7E #1A2D7E #391A7E
triadic
#1A2D7E #7E1A2D #2D7E1A
tetradic
#1A2D7E #7E1A5F #7E6B1A #1A7E39
square
#1A2D7E #7E1A5F #7E6B1A #1A7E39
split-complementary
#1A2D7E #7E391A #5F7E1A
monochromatic
#050919 #101B4B #1A2D7E #243FB1 #3C59D7

Accessibility & contrast

On white

12.21
#1A2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2D7E
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2D7E#FFFFFF#000000##FFFFFF
##1A2D7E1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1a2d7e;
/* rgb */ color: rgb(26, 45, 126);
/* oklch */ color: oklch(33.9% 0.139 267.8);
Tailwind
colors: {
  custom: {
    50: '#6865a4',
    500: '#1a2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #1a2d7e;
$custom-light: #6865a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2d7e",
  "rgb": {
    "r": 26,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 228.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33946,
    "c": 0.1387,
    "h": 267.8
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#1A2D7E
secondary
#B29D42
accent
#C83FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1A2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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