#1A2270#1A2270

#1A2270 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.133 H 271.2°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#1A2270
RGBrgb(26, 34, 112)
HSLhsl(234, 62%, 27%)
HSVhsv(234, 77%, 44%)
CMYKcmyk(76.8%, 69.6%, 0%, 56.1%)
CIE-LABlab(18.07, 25.93, -45.93)
CIE-LCHlch(18.07, 52.75, 299.45°)
OKLaboklab(30.42% 0.0028 -0.1328)
OKLCHoklch(30.42% 0.133 271.2)
XYZxyz(3.9217, 2.5331, 15.6084)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2270 #70681A
analogous
#1A4D70 #1A2270 #3D1A70
triadic
#1A2270 #701A22 #22701A
tetradic
#1A2270 #701A4D #70681A #1A703D
square
#1A2270 #701A4D #70681A #1A703D
split-complementary
#1A2270 #703D1A #4D701A
monochromatic
#060819 #0E133E #1A2270 #2631A2 #3443D0

Accessibility & contrast

On white

13.94
#1A2270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1A2270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2270
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2270#FFFFFF#000000##FFFFFF
##1A22701.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a2270;
/* rgb */ color: rgb(26, 34, 112);
/* oklch */ color: oklch(30.4% 0.133 271.2);
Tailwind
colors: {
  custom: {
    50: '#655d9a',
    500: '#1a2270',
    950: '#000000',
  },
}
SCSS
$custom: #1a2270;
$custom-light: #655d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2270",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 234.419,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30419,
    "c": 0.13286,
    "h": 271.2
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#1A2270
secondary
#A59C41
accent
#D642E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1A2270

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

Preview Lab → · Contrast checker → · Palette generator →

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