#1A228F#1A228F

#1A228F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.174 H 269.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#1A228F
RGBrgb(26, 34, 143)
HSLhsl(236, 69%, 33%)
HSVhsv(236, 82%, 56%)
CMYKcmyk(81.8%, 76.2%, 0%, 43.9%)
CIE-LABlab(21.38, 37.46, -60.13)
CIE-LCHlch(21.38, 70.84, 301.92°)
OKLaboklab(33.79% -0.0012 -0.1742)
OKLCHoklch(33.79% 0.174 269.6)
XYZxyz(5.9543, 3.3461, 26.3133)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A228F #8F871A
analogous
#1A5D8F #1A228F #4C1A8F
triadic
#1A228F #8F1A22 #228F1A
tetradic
#1A228F #8F1A5D #8F871A #1A8F4C
square
#1A228F #8F1A5D #8F871A #1A8F4C
split-complementary
#1A228F #8F4C1A #5D8F1A
monochromatic
#070927 #11165B #1A228F #232EC3 #4650DD

Accessibility & contrast

On white

12.58
#1A228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1A228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A228F
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A228F#FFFFFF#000000##FFFFFF
##1A228F1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a228f;
/* rgb */ color: rgb(26, 34, 143);
/* oklch */ color: oklch(33.8% 0.174 269.6);
Tailwind
colors: {
  custom: {
    50: '#6e5eb1',
    500: '#1a228f',
    950: '#000000',
  },
}
SCSS
$custom: #1a228f;
$custom-light: #6e5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a228f",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 235.897,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33794,
    "c": 0.17419,
    "h": 269.6
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#1A228F
secondary
#BFB746
accent
#E03CEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1A228F

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

Preview Lab → · Contrast checker → · Palette generator →

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