#1A338A#1A338A

#1A338A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.148 H 266.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#1A338A
RGBrgb(26, 51, 138)
HSLhsl(227, 68%, 32%)
HSVhsv(227, 81%, 54%)
CMYKcmyk(81.2%, 63%, 0%, 45.9%)
CIE-LABlab(25.02, 24.42, -51.03)
CIE-LCHlch(25.02, 56.58, 295.57°)
OKLaboklab(36.29% -0.0092 -0.1476)
OKLCHoklch(36.29% 0.148 266.4)
XYZxyz(6.1957, 4.4215, 24.5667)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A338A #8A711A
analogous
#1A6B8A #1A338A #391A8A
triadic
#1A338A #8A1A33 #338A1A
tetradic
#1A338A #8A1A6B #8A711A #1A8A39
square
#1A338A #8A1A6B #8A711A #1A8A39
split-complementary
#1A338A #8A391A #6B8A1A
monochromatic
#070D23 #102057 #1A338A #2446BD #4365DC

Accessibility & contrast

On white

11.14
#1A338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1A338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A338A
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A338A#FFFFFF#000000##FFFFFF
##1A338A1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1a338a;
/* rgb */ color: rgb(26, 51, 138);
/* oklch */ color: oklch(36.3% 0.148 266.4);
Tailwind
colors: {
  custom: {
    50: '#6b6aad',
    500: '#1a338a',
    950: '#000000',
  },
}
SCSS
$custom: #1a338a;
$custom-light: #6b6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1a338a",
  "rgb": {
    "r": 26,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 226.607,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3629,
    "c": 0.14789,
    "h": 266.4
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#1A338A
secondary
#BDA243
accent
#C43DEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1A338A

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

Preview Lab → · Contrast checker → · Palette generator →

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