#1A338B#1A338B

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

Color values

HEX#1A338B
RGBrgb(26, 51, 139)
HSLhsl(227, 68%, 32%)
HSVhsv(227, 81%, 55%)
CMYKcmyk(81.3%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.11, 24.82, -51.51)
CIE-LCHlch(25.11, 57.18, 295.73°)
OKLaboklab(36.38% -0.0092 -0.149)
OKLCHoklch(36.38% 0.149 266.5)
XYZxyz(6.2684, 4.4506, 24.9498)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A338B #8B721A
analogous
#1A6B8B #1A338B #3A1A8B
triadic
#1A338B #8B1A33 #338B1A
tetradic
#1A338B #8B1A6B #8B721A #1A8B3A
square
#1A338B #8B1A6B #8B721A #1A8B3A
split-complementary
#1A338B #8B3A1A #6B8B1A
monochromatic
#070D24 #102057 #1A338B #2446BF #4365DC

Accessibility & contrast

On white

11.11
#1A338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1A338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A338B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A338B#FFFFFF#000000##FFFFFF
##1A338B1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1a338b;
/* rgb */ color: rgb(26, 51, 139);
/* oklch */ color: oklch(36.4% 0.149 266.5);
Tailwind
colors: {
  custom: {
    50: '#6b6aae',
    500: '#1a338b',
    950: '#000000',
  },
}
SCSS
$custom: #1a338b;
$custom-light: #6b6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#1a338b",
  "rgb": {
    "r": 26,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 226.726,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36384,
    "c": 0.14928,
    "h": 266.5
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#1A338B
secondary
#BDA244
accent
#C53CEB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1A338B

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

Preview Lab → · Contrast checker → · Palette generator →

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