#1A2287#1A2287

#1A2287 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.164 H 270.0°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#1A2287
RGBrgb(26, 34, 135)
HSLhsl(236, 68%, 32%)
HSVhsv(236, 81%, 53%)
CMYKcmyk(80.7%, 74.8%, 0%, 47.1%)
CIE-LABlab(20.49, 34.58, -56.60)
CIE-LCHlch(20.49, 66.33, 301.42°)
OKLaboklab(32.89% 0 -0.164)
OKLCHoklch(32.89% 0.164 270)
XYZxyz(5.3697, 3.1123, 23.2347)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2287 #877F1A
analogous
#1A5987 #1A2287 #491A87
triadic
#1A2287 #871A22 #22871A
tetradic
#1A2287 #871A59 #877F1A #1A8749
square
#1A2287 #871A59 #877F1A #1A8749
split-complementary
#1A2287 #87491A #59871A
monochromatic
#060820 #101554 #1A2287 #242FBA #414CDA

Accessibility & contrast

On white

12.94
#1A2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1A2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2287
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2287#FFFFFF#000000##FFFFFF
##1A22871.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1a2287;
/* rgb */ color: rgb(26, 34, 135);
/* oklch */ color: oklch(32.9% 0.164 270.0);
Tailwind
colors: {
  custom: {
    50: '#6c5eab',
    500: '#1a2287',
    950: '#000000',
  },
}
SCSS
$custom: #1a2287;
$custom-light: #6c5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2287",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 235.596,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32894,
    "c": 0.16395,
    "h": 270
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#1A2287
secondary
#BAB242
accent
#DE3DEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A2287

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

Preview Lab → · Contrast checker → · Palette generator →

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