#1A2F72#1A2F72

#1A2F72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.119 H 266.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#1A2F72
RGBrgb(26, 47, 114)
HSLhsl(226, 63%, 27%)
HSVhsv(226, 77%, 45%)
CMYKcmyk(77.2%, 58.8%, 0%, 55.3%)
CIE-LABlab(21.83, 17.56, -41.09)
CIE-LCHlch(21.83, 44.68, 293.14°)
OKLaboklab(33.26% -0.007 -0.1185)
OKLCHoklch(33.26% 0.119 266.6)
XYZxyz(4.4787, 3.4671, 16.3495)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F72 #725D1A
analogous
#1A5B72 #1A2F72 #311A72
triadic
#1A2F72 #721A2F #2F721A
tetradic
#1A2F72 #721A5B #725D1A #1A7231
square
#1A2F72 #721A5B #725D1A #1A7231
split-complementary
#1A2F72 #72311A #5B721A
monochromatic
#060A19 #0F1A40 #1A2F72 #2544A4 #355BD1

Accessibility & contrast

On white

12.40
#1A2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1A2F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F72
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F72#FFFFFF#000000##FFFFFF
##1A2F721.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1a2f72;
/* rgb */ color: rgb(26, 47, 114);
/* oklch */ color: oklch(33.3% 0.119 266.6);
Tailwind
colors: {
  custom: {
    50: '#65679b',
    500: '#1a2f72',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f72;
$custom-light: #65679b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f72",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 225.682,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33258,
    "c": 0.11867,
    "h": 266.6
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#1A2F72
secondary
#A78F41
accent
#BF42E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1A2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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