#1A2F7C#1A2F7C

#1A2F7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.133 H 267.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#1A2F7C
RGBrgb(26, 47, 124)
HSLhsl(227, 65%, 29%)
HSVhsv(227, 79%, 49%)
CMYKcmyk(79%, 62.1%, 0%, 51.4%)
CIE-LABlab(22.68, 21.61, -46.07)
CIE-LCHlch(22.68, 50.89, 295.13°)
OKLaboklab(34.16% -0.0066 -0.1331)
OKLCHoklch(34.16% 0.133 267.1)
XYZxyz(5.0793, 3.7073, 19.5128)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F7C #7C671A
analogous
#1A607C #1A2F7C #361A7C
triadic
#1A2F7C #7C1A2F #2F7C1A
tetradic
#1A2F7C #7C1A60 #7C671A #1A7C36
square
#1A2F7C #7C1A60 #7C671A #1A7C36
split-complementary
#1A2F7C #7C361A #607C1A
monochromatic
#050A19 #0F1C49 #1A2F7C #2542AF #3B5CD6

Accessibility & contrast

On white

12.06
#1A2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1A2F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F7C
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F7C#FFFFFF#000000##FFFFFF
##1A2F7C1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1a2f7c;
/* rgb */ color: rgb(26, 47, 124);
/* oklch */ color: oklch(34.2% 0.133 267.1);
Tailwind
colors: {
  custom: {
    50: '#6767a3',
    500: '#1a2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f7c;
$custom-light: #6767a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f7c",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 227.143,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34164,
    "c": 0.13326,
    "h": 267.1
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#1A2F7C
secondary
#B09842
accent
#C440E8
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1A2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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