#1A2252#1A2252

#1A2252 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.088 H 272.2°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#1A2252
RGBrgb(26, 34, 82)
HSLhsl(231, 52%, 21%)
HSVhsv(231, 68%, 32%)
CMYKcmyk(68.3%, 58.5%, 0%, 67.8%)
CIE-LABlab(15.34, 14.00, -30.52)
CIE-LCHlch(15.34, 33.58, 294.65°)
OKLaboklab(27.56% 0.0034 -0.0876)
OKLCHoklch(27.56% 0.088 272.2)
XYZxyz(2.5205, 1.9727, 8.2289)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2252 #524A1A
analogous
#1A3E52 #1A2252 #2E1A52
triadic
#1A2252 #521A22 #22521A
tetradic
#1A2252 #521A3E #524A1A #1A522E
square
#1A2252 #521A3E #524A1A #1A522E
split-complementary
#1A2252 #522E1A #3E521A
monochromatic
#070A17 #0B0F24 #1A2252 #293580 #3749AF

Accessibility & contrast

On white

15.06
#1A2252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1A2252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2252
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2252#FFFFFF#000000##FFFFFF
##1A22521.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042954
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1a2252;
/* rgb */ color: rgb(26, 34, 82);
/* oklch */ color: oklch(27.6% 0.088 272.2);
Tailwind
colors: {
  custom: {
    50: '#5e5c83',
    500: '#1a2252',
    950: '#000000',
  },
}
SCSS
$custom: #1a2252;
$custom-light: #5e5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2252",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 231.429,
    "s": 51.852,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27556,
    "c": 0.08765,
    "h": 272.2
  },
  "luminance": 0.01973
}

Semantic roles & 50–950 ramp

primary
#1A2252
secondary
#887E40
accent
#C74CDB
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #1A2252

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

Preview Lab → · Contrast checker → · Palette generator →

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