#1A2152#1A2152

#1A2152 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.089 H 272.9°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#1A2152
RGBrgb(26, 33, 82)
HSLhsl(233, 52%, 21%)
HSVhsv(233, 68%, 32%)
CMYKcmyk(68.3%, 59.8%, 0%, 67.8%)
CIE-LABlab(15.04, 14.74, -31.01)
CIE-LCHlch(15.04, 34.33, 295.43°)
OKLaboklab(27.33% 0.0045 -0.089)
OKLCHoklch(27.33% 0.089 272.9)
XYZxyz(2.4923, 1.9163, 8.2196)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2152 #524B1A
analogous
#1A3D52 #1A2152 #2F1A52
triadic
#1A2152 #521A21 #21521A
tetradic
#1A2152 #521A3D #524B1A #1A522F
square
#1A2152 #521A3D #524B1A #1A522F
split-complementary
#1A2152 #522F1A #3D521A
monochromatic
#070917 #0B0E24 #1A2152 #293480 #3746AF

Accessibility & contrast

On white

15.18
#1A2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1A2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2152
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2152#FFFFFF#000000##FFFFFF
##1A21521.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012854
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1a2152;
/* rgb */ color: rgb(26, 33, 82);
/* oklch */ color: oklch(27.3% 0.089 272.9);
Tailwind
colors: {
  custom: {
    50: '#5e5c83',
    500: '#1a2152',
    950: '#000000',
  },
}
SCSS
$custom: #1a2152;
$custom-light: #5e5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2152",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 232.5,
    "s": 51.852,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2733,
    "c": 0.08914,
    "h": 272.9
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#1A2152
secondary
#887F40
accent
#C94CDB
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #1A2152

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

Preview Lab → · Contrast checker → · Palette generator →

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