#1A338D#1A338D

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

Color values

HEX#1A338D
RGBrgb(26, 51, 141)
HSLhsl(227, 69%, 33%)
HSVhsv(227, 82%, 55%)
CMYKcmyk(81.6%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.29, 25.61, -52.45)
CIE-LCHlch(25.29, 58.37, 296.03°)
OKLaboklab(36.57% -0.0092 -0.1518)
OKLCHoklch(36.57% 0.152 266.5)
XYZxyz(6.4159, 4.5096, 25.7264)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A338D #8D741A
analogous
#1A6C8D #1A338D #3B1A8D
triadic
#1A338D #8D1A33 #338D1A
tetradic
#1A338D #8D1A6C #8D741A #1A8D3B
square
#1A338D #8D1A6C #8D741A #1A8D3B
split-complementary
#1A338D #8D3B1A #6C8D1A
monochromatic
#070E26 #102059 #1A338D #2446C1 #4566DD

Accessibility & contrast

On white

11.04
#1A338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1A338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A338D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A338D#FFFFFF#000000##FFFFFF
##1A338D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1a338d;
/* rgb */ color: rgb(26, 51, 141);
/* oklch */ color: oklch(36.6% 0.152 266.5);
Tailwind
colors: {
  custom: {
    50: '#6c6aaf',
    500: '#1a338d',
    950: '#000000',
  },
}
SCSS
$custom: #1a338d;
$custom-light: #6c6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1a338d",
  "rgb": {
    "r": 26,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 226.957,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36574,
    "c": 0.15204,
    "h": 266.5
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#1A338D
secondary
#BEA445
accent
#C63CEC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1A338D

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

Preview Lab → · Contrast checker → · Palette generator →

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