#1A237E#1A237E

#1A237E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.151 H 270.3°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#1A237E
RGBrgb(26, 35, 126)
HSLhsl(235, 66%, 30%)
HSVhsv(235, 79%, 49%)
CMYKcmyk(79.4%, 72.2%, 0%, 50.6%)
CIE-LABlab(19.75, 30.61, -52.14)
CIE-LCHlch(19.75, 60.46, 300.41°)
OKLaboklab(32.07% 0.0008 -0.1509)
OKLCHoklch(32.07% 0.151 270.3)
XYZxyz(4.7916, 2.9275, 20.0471)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A237E #7E751A
analogous
#1A557E #1A237E #431A7E
triadic
#1A237E #7E1A23 #237E1A
tetradic
#1A237E #7E1A55 #7E751A #1A7E43
square
#1A237E #7E1A55 #7E751A #1A7E43
split-complementary
#1A237E #7E431A #557E1A
monochromatic
#050719 #10154B #1A237E #2431B1 #3C4AD7

Accessibility & contrast

On white

13.24
#1A237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1A237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A237E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A237E#FFFFFF#000000##FFFFFF
##1A237E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1a237e;
/* rgb */ color: rgb(26, 35, 126);
/* oklch */ color: oklch(32.1% 0.151 270.3);
Tailwind
colors: {
  custom: {
    50: '#695ea4',
    500: '#1a237e',
    950: '#000000',
  },
}
SCSS
$custom: #1a237e;
$custom-light: #695ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a237e",
  "rgb": {
    "r": 26,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 234.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32075,
    "c": 0.15094,
    "h": 270.3
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#1A237E
secondary
#B2A842
accent
#D93FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A237E

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

Preview Lab → · Contrast checker → · Palette generator →

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