#1A2F7E#1A2F7E

#1A2F7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.136 H 267.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#1A2F7E
RGBrgb(26, 47, 126)
HSLhsl(227, 66%, 30%)
HSVhsv(227, 79%, 49%)
CMYKcmyk(79.4%, 62.7%, 0%, 50.6%)
CIE-LABlab(22.86, 22.42, -47.05)
CIE-LCHlch(22.86, 52.11, 295.48°)
OKLaboklab(34.35% -0.0066 -0.136)
OKLCHoklch(34.35% 0.136 267.2)
XYZxyz(5.2071, 3.7584, 20.1856)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F7E #7E691A
analogous
#1A617E #1A2F7E #371A7E
triadic
#1A2F7E #7E1A2F #2F7E1A
tetradic
#1A2F7E #7E1A61 #7E691A #1A7E37
square
#1A2F7E #7E1A61 #7E691A #1A7E37
split-complementary
#1A2F7E #7E371A #617E1A
monochromatic
#050919 #101C4B #1A2F7E #2442B1 #3C5CD7

Accessibility & contrast

On white

11.99
#1A2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2F7E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F7E#FFFFFF#000000##FFFFFF
##1A2F7E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1a2f7e;
/* rgb */ color: rgb(26, 47, 126);
/* oklch */ color: oklch(34.4% 0.136 267.2);
Tailwind
colors: {
  custom: {
    50: '#6867a4',
    500: '#1a2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f7e;
$custom-light: #6867a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f7e",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 227.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34351,
    "c": 0.13612,
    "h": 267.2
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#1A2F7E
secondary
#B29A42
accent
#C53FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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