#1A338E#1A338E

#1A338E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.153 H 266.5°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#1A338E
RGBrgb(26, 51, 142)
HSLhsl(227, 69%, 33%)
HSVhsv(227, 82%, 56%)
CMYKcmyk(81.7%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.38, 26.01, -52.93)
CIE-LCHlch(25.38, 58.97, 296.17°)
OKLaboklab(36.67% -0.0093 -0.1531)
OKLCHoklch(36.67% 0.153 266.5)
XYZxyz(6.4906, 4.5395, 26.1201)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A338E #8E751A
analogous
#1A6D8E #1A338E #3B1A8E
triadic
#1A338E #8E1A33 #338E1A
tetradic
#1A338E #8E1A6D #8E751A #1A8E3B
square
#1A338E #8E1A6D #8E751A #1A8E3B
split-complementary
#1A338E #8E3B1A #6D8E1A
monochromatic
#070E27 #11205A #1A338E #2346C2 #4566DD

Accessibility & contrast

On white

11.01
#1A338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1A338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A338E
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A338E#FFFFFF#000000##FFFFFF
##1A338E1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1a338e;
/* rgb */ color: rgb(26, 51, 142);
/* oklch */ color: oklch(36.7% 0.153 266.5);
Tailwind
colors: {
  custom: {
    50: '#6c6ab0',
    500: '#1a338e',
    950: '#000000',
  },
}
SCSS
$custom: #1a338e;
$custom-light: #6c6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a338e",
  "rgb": {
    "r": 26,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 227.069,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36669,
    "c": 0.15342,
    "h": 266.5
  },
  "luminance": 0.0454
}

Semantic roles & 50–950 ramp

primary
#1A338E
secondary
#BEA445
accent
#C63CEC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1A338E

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

Preview Lab → · Contrast checker → · Palette generator →

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