#1A2F7D#1A2F7D

#1A2F7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.135 H 267.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#1A2F7D
RGBrgb(26, 47, 125)
HSLhsl(227, 66%, 30%)
HSVhsv(227, 79%, 49%)
CMYKcmyk(79.2%, 62.4%, 0%, 51%)
CIE-LABlab(22.77, 22.01, -46.56)
CIE-LCHlch(22.77, 51.50, 295.31°)
OKLaboklab(34.26% -0.0066 -0.1345)
OKLCHoklch(34.26% 0.135 267.2)
XYZxyz(5.1429, 3.7327, 19.8475)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F7D #7D681A
analogous
#1A617D #1A2F7D #371A7D
triadic
#1A2F7D #7D1A2F #2F7D1A
tetradic
#1A2F7D #7D1A61 #7D681A #1A7D37
square
#1A2F7D #7D1A61 #7D681A #1A7D37
split-complementary
#1A2F7D #7D371A #617D1A
monochromatic
#050A19 #0F1C4A #1A2F7D #2542B0 #3B5CD6

Accessibility & contrast

On white

12.02
#1A2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1A2F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F7D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F7D#FFFFFF#000000##FFFFFF
##1A2F7D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1a2f7d;
/* rgb */ color: rgb(26, 47, 125);
/* oklch */ color: oklch(34.3% 0.135 267.2);
Tailwind
colors: {
  custom: {
    50: '#6867a3',
    500: '#1a2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f7d;
$custom-light: #6867a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f7d",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 227.273,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34257,
    "c": 0.13469,
    "h": 267.2
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#1A2F7D
secondary
#B19942
accent
#C53FE9
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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