#1A2E7C#1A2E7C

#1A2E7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.135 H 267.5°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#1A2E7C
RGBrgb(26, 46, 124)
HSLhsl(228, 65%, 29%)
HSVhsv(228, 79%, 49%)
CMYKcmyk(79%, 62.9%, 0%, 51.4%)
CIE-LABlab(22.40, 22.32, -46.52)
CIE-LCHlch(22.40, 51.60, 295.63°)
OKLaboklab(33.96% -0.0059 -0.1344)
OKLCHoklch(33.96% 0.135 267.5)
XYZxyz(5.0398, 3.6283, 19.4996)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2E7C #7C681A
analogous
#1A5F7C #1A2E7C #371A7C
triadic
#1A2E7C #7C1A2E #2E7C1A
tetradic
#1A2E7C #7C1A5F #7C681A #1A7C37
square
#1A2E7C #7C1A5F #7C681A #1A7C37
split-complementary
#1A2E7C #7C371A #5F7C1A
monochromatic
#050919 #0F1B49 #1A2E7C #2541AF #3B5AD6

Accessibility & contrast

On white

12.17
#1A2E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1A2E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2E7C
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2E7C#FFFFFF#000000##FFFFFF
##1A2E7C1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1a2e7c;
/* rgb */ color: rgb(26, 46, 124);
/* oklch */ color: oklch(34.0% 0.135 267.5);
Tailwind
colors: {
  custom: {
    50: '#6766a3',
    500: '#1a2e7c',
    950: '#000000',
  },
}
SCSS
$custom: #1a2e7c;
$custom-light: #6766a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2e7c",
  "rgb": {
    "r": 26,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 227.755,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33958,
    "c": 0.13456,
    "h": 267.5
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#1A2E7C
secondary
#B09A42
accent
#C640E8
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1A2E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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