#1A237F#1A237F

#1A237F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.152 H 270.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#1A237F
RGBrgb(26, 35, 127)
HSLhsl(235, 66%, 30%)
HSVhsv(235, 80%, 50%)
CMYKcmyk(79.5%, 72.4%, 0%, 50.2%)
CIE-LABlab(19.86, 30.98, -52.60)
CIE-LCHlch(19.86, 61.05, 300.50°)
OKLaboklab(32.18% 0.0006 -0.1523)
OKLCHoklch(32.18% 0.152 270.2)
XYZxyz(4.8565, 2.9534, 20.3887)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A237F #7F761A
analogous
#1A567F #1A237F #431A7F
triadic
#1A237F #7F1A23 #237F1A
tetradic
#1A237F #7F1A56 #7F761A #1A7F43
square
#1A237F #7F1A56 #7F761A #1A7F43
split-complementary
#1A237F #7F431A #567F1A
monochromatic
#050719 #10154C #1A237F #2431B2 #3C4AD7

Accessibility & contrast

On white

13.20
#1A237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A237F
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A237F#FFFFFF#000000##FFFFFF
##1A237F1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1a237f;
/* rgb */ color: rgb(26, 35, 127);
/* oklch */ color: oklch(32.2% 0.152 270.2);
Tailwind
colors: {
  custom: {
    50: '#695ea5',
    500: '#1a237f',
    950: '#000000',
  },
}
SCSS
$custom: #1a237f;
$custom-light: #695ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a237f",
  "rgb": {
    "r": 26,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 234.653,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32182,
    "c": 0.15229,
    "h": 270.2
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#1A237F
secondary
#B3A942
accent
#DA3FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A237F

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

Preview Lab → · Contrast checker → · Palette generator →

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