#1A2D7F#1A2D7F

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

Color values

HEX#1A2D7F
RGBrgb(26, 45, 127)
HSLhsl(229, 66%, 30%)
HSVhsv(229, 80%, 50%)
CMYKcmyk(79.5%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.40, 24.21, -48.42)
CIE-LCHlch(22.40, 54.14, 296.57°)
OKLaboklab(34.04% -0.0053 -0.14)
OKLCHoklch(34.04% 0.14 267.8)
XYZxyz(5.1938, 3.6281, 20.5011)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2D7F #7F6C1A
analogous
#1A5F7F #1A2D7F #3A1A7F
triadic
#1A2D7F #7F1A2D #2D7F1A
tetradic
#1A2D7F #7F1A5F #7F6C1A #1A7F3A
square
#1A2D7F #7F1A5F #7F6C1A #1A7F3A
split-complementary
#1A2D7F #7F3A1A #5F7F1A
monochromatic
#050919 #101B4C #1A2D7F #243FB2 #3C59D7

Accessibility & contrast

On white

12.17
#1A2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1A2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2D7F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2D7F#FFFFFF#000000##FFFFFF
##1A2D7F1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1a2d7f;
/* rgb */ color: rgb(26, 45, 127);
/* oklch */ color: oklch(34.0% 0.140 267.8);
Tailwind
colors: {
  custom: {
    50: '#6865a5',
    500: '#1a2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #1a2d7f;
$custom-light: #6865a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2d7f",
  "rgb": {
    "r": 26,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 228.713,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.34042,
    "c": 0.14011,
    "h": 267.8
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#1A2D7F
secondary
#B39E42
accent
#C93FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1A2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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