#1A2F71#1A2F71

#1A2F71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.2% C 0.117 H 266.5°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1A2F71
RGBrgb(26, 47, 113)
HSLhsl(226, 63%, 27%)
HSVhsv(226, 77%, 44%)
CMYKcmyk(77%, 58.4%, 0%, 55.7%)
CIE-LABlab(21.74, 17.15, -40.58)
CIE-LCHlch(21.74, 44.05, 292.91°)
OKLaboklab(33.17% -0.0071 -0.117)
OKLCHoklch(33.17% 0.117 266.5)
XYZxyz(4.4221, 3.4444, 16.0514)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F71 #715C1A
analogous
#1A5B71 #1A2F71 #301A71
triadic
#1A2F71 #711A2F #2F711A
tetradic
#1A2F71 #711A5B #715C1A #1A7130
square
#1A2F71 #711A5B #715C1A #1A7130
split-complementary
#1A2F71 #71301A #5B711A
monochromatic
#060A19 #0F1A3F #1A2F71 #2544A3 #355AD0

Accessibility & contrast

On white

12.43
#1A2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2F71
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F71#FFFFFF#000000##FFFFFF
##1A2F711.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1a2f71;
/* rgb */ color: rgb(26, 47, 113);
/* oklch */ color: oklch(33.2% 0.117 266.5);
Tailwind
colors: {
  custom: {
    50: '#64679a',
    500: '#1a2f71',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f71;
$custom-light: #64679a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f71",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 225.517,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3317,
    "c": 0.11718,
    "h": 266.5
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#1A2F71
secondary
#A68E41
accent
#BE42E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1A2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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