#1A2371#1A2371

#1A2371 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.133 H 270.9°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#1A2371
RGBrgb(26, 35, 113)
HSLhsl(234, 63%, 27%)
HSVhsv(234, 77%, 44%)
CMYKcmyk(77%, 69%, 0%, 55.7%)
CIE-LABlab(18.42, 25.63, -46.00)
CIE-LCHlch(18.42, 52.66, 299.13°)
OKLaboklab(30.71% 0.0021 -0.133)
OKLCHoklch(30.71% 0.133 270.9)
XYZxyz(4.0067, 2.6135, 15.9129)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2371 #71681A
analogous
#1A4F71 #1A2371 #3D1A71
triadic
#1A2371 #711A23 #23711A
tetradic
#1A2371 #711A4F #71681A #1A713D
square
#1A2371 #711A4F #71681A #1A713D
split-complementary
#1A2371 #713D1A #4F711A
monochromatic
#060819 #0F143F #1A2371 #2532A3 #3545D0

Accessibility & contrast

On white

13.79
#1A2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1A2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2371
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2371#FFFFFF#000000##FFFFFF
##1A23711.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1a2371;
/* rgb */ color: rgb(26, 35, 113);
/* oklch */ color: oklch(30.7% 0.133 270.9);
Tailwind
colors: {
  custom: {
    50: '#655e9b',
    500: '#1a2371',
    950: '#000000',
  },
}
SCSS
$custom: #1a2371;
$custom-light: #655e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2371",
  "rgb": {
    "r": 26,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 233.793,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30709,
    "c": 0.13302,
    "h": 270.9
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#1A2371
secondary
#A69B41
accent
#D542E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1A2371

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

Preview Lab → · Contrast checker → · Palette generator →

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