#1A2F4F#1A2F4F

#1A2F4F is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.5% C 0.064 H 258.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#1A2F4F
RGBrgb(26, 47, 79)
HSLhsl(216, 50%, 21%)
HSVhsv(216, 67%, 31%)
CMYKcmyk(67.1%, 40.5%, 0%, 69%)
CIE-LABlab(19.30, 3.26, -22.17)
CIE-LCHlch(19.30, 22.41, 278.37°)
OKLaboklab(30.51% -0.0127 -0.0629)
OKLCHoklch(30.51% 0.064 258.6)
XYZxyz(2.8533, 2.8169, 7.7890)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F4F #4F3A1A
analogous
#1A494F #1A2F4F #1F1A4F
triadic
#1A2F4F #4F1A2F #2F4F1A
tetradic
#1A2F4F #4F1A49 #4F3A1A #1A4F1F
square
#1A2F4F #4F1A49 #4F3A1A #1A4F1F
split-complementary
#1A2F4F #4F1F1A #494F1A
monochromatic
#080E17 #0B1421 #1A2F4F #294A7D #3866AB

Accessibility & contrast

On white

13.43
#1A2F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2F4F
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F4F#FFFFFF#000000##FFFFFF
##1A2F4F1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213150
Deuteranopia (green-blind)
#1A2D4E
Tritanopia (blue-blind)
#00363B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a2f4f;
/* rgb */ color: rgb(26, 47, 79);
/* oklch */ color: oklch(30.5% 0.064 258.6);
Tailwind
colors: {
  custom: {
    50: '#5c6780',
    500: '#1a2f4f',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f4f;
$custom-light: #5c6780;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f4f",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 79
  },
  "hsl": {
    "h": 216.226,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30514,
    "c": 0.06414,
    "h": 258.6
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#1A2F4F
secondary
#856A40
accent
#A24EDA
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #1A2F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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