#1A2F7B#1A2F7B

#1A2F7B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.132 H 267.1°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#1A2F7B
RGBrgb(26, 47, 123)
HSLhsl(227, 65%, 29%)
HSVhsv(227, 79%, 48%)
CMYKcmyk(78.9%, 61.8%, 0%, 51.8%)
CIE-LABlab(22.59, 21.21, -45.58)
CIE-LCHlch(22.59, 50.27, 294.95°)
OKLaboklab(34.07% -0.0067 -0.1316)
OKLCHoklch(34.07% 0.132 267.1)
XYZxyz(5.0164, 3.6821, 19.1814)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F7B #7B661A
analogous
#1A607B #1A2F7B #351A7B
triadic
#1A2F7B #7B1A2F #2F7B1A
tetradic
#1A2F7B #7B1A60 #7B661A #1A7B35
square
#1A2F7B #7B1A60 #7B661A #1A7B35
split-complementary
#1A2F7B #7B351A #607B1A
monochromatic
#050A19 #0F1C48 #1A2F7B #2542AE #3A5CD5

Accessibility & contrast

On white

12.09
#1A2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1A2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F7B
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F7B#FFFFFF#000000##FFFFFF
##1A2F7B1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1a2f7b;
/* rgb */ color: rgb(26, 47, 123);
/* oklch */ color: oklch(34.1% 0.132 267.1);
Tailwind
colors: {
  custom: {
    50: '#6767a2',
    500: '#1a2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f7b;
$custom-light: #6767a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f7b",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 227.01,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34071,
    "c": 0.13182,
    "h": 267.1
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#1A2F7B
secondary
#AF9842
accent
#C440E8
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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