#1A2F4E#1A2F4E

#1A2F4E is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.4% C 0.063 H 258.0°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#1A2F4E
RGBrgb(26, 47, 78)
HSLhsl(216, 50%, 20%)
HSVhsv(216, 67%, 31%)
CMYKcmyk(66.7%, 39.7%, 0%, 69.4%)
CIE-LABlab(19.23, 2.87, -21.59)
CIE-LCHlch(19.23, 21.78, 277.56°)
OKLaboklab(30.45% -0.013 -0.0612)
OKLCHoklch(30.45% 0.063 258)
XYZxyz(2.8172, 2.8024, 7.5987)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F4E #4E391A
analogous
#1A494E #1A2F4E #1F1A4E
triadic
#1A2F4E #4E1A2F #2F4E1A
tetradic
#1A2F4E #4E1A49 #4E391A #1A4E1F
square
#1A2F4E #4E1A49 #4E391A #1A4E1F
split-complementary
#1A2F4E #4E1F1A #494E1A
monochromatic
#080E17 #0B1320 #1A2F4E #294B7C #3966AA

Accessibility & contrast

On white

13.46
#1A2F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1A2F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F4E
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F4E#FFFFFF#000000##FFFFFF
##1A2F4E1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22314F
Deuteranopia (green-blind)
#1B2C4D
Tritanopia (blue-blind)
#00363A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a2f4e;
/* rgb */ color: rgb(26, 47, 78);
/* oklch */ color: oklch(30.4% 0.063 258.0);
Tailwind
colors: {
  custom: {
    50: '#5c6780',
    500: '#1a2f4e',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f4e;
$custom-light: #5c6780;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f4e",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 215.769,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30448,
    "c": 0.06256,
    "h": 258
  },
  "luminance": 0.02803
}

Semantic roles & 50–950 ramp

primary
#1A2F4E
secondary
#846840
accent
#A14EDA
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #1A2F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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