#1A338F#1A338F

#1A338F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.155 H 266.6°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#1A338F
RGBrgb(26, 51, 143)
HSLhsl(227, 69%, 33%)
HSVhsv(227, 82%, 56%)
CMYKcmyk(81.8%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.47, 26.40, -53.39)
CIE-LCHlch(25.47, 59.56, 296.31°)
OKLaboklab(36.77% -0.0093 -0.1545)
OKLCHoklch(36.77% 0.155 266.6)
XYZxyz(6.5660, 4.5697, 26.5173)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A338F #8F761A
analogous
#1A6E8F #1A338F #3B1A8F
triadic
#1A338F #8F1A33 #338F1A
tetradic
#1A338F #8F1A6E #8F761A #1A8F3B
square
#1A338F #8F1A6E #8F761A #1A8F3B
split-complementary
#1A338F #8F3B1A #6E8F1A
monochromatic
#070E27 #11215B #1A338F #2345C3 #4666DD

Accessibility & contrast

On white

10.97
#1A338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A338F
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A338F#FFFFFF#000000##FFFFFF
##1A338F1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1a338f;
/* rgb */ color: rgb(26, 51, 143);
/* oklch */ color: oklch(36.8% 0.155 266.6);
Tailwind
colors: {
  custom: {
    50: '#6c6ab1',
    500: '#1a338f',
    950: '#000000',
  },
}
SCSS
$custom: #1a338f;
$custom-light: #6c6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a338f",
  "rgb": {
    "r": 26,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 227.179,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36765,
    "c": 0.15479,
    "h": 266.6
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#1A338F
secondary
#BFA546
accent
#C63CEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1A338F

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

Preview Lab → · Contrast checker → · Palette generator →

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