#1A2F62#1A2F62

#1A2F62 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.9% C 0.094 H 264.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#1A2F62
RGBrgb(26, 47, 98)
HSLhsl(223, 58%, 24%)
HSVhsv(223, 73%, 38%)
CMYKcmyk(73.5%, 52%, 0%, 61.6%)
CIE-LABlab(20.57, 10.99, -32.74)
CIE-LCHlch(20.57, 34.54, 288.55°)
OKLaboklab(31.91% -0.0086 -0.0939)
OKLCHoklch(31.91% 0.094 264.7)
XYZxyz(3.6463, 3.1341, 11.9657)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F62 #624D1A
analogous
#1A5362 #1A2F62 #291A62
triadic
#1A2F62 #621A2F #2F621A
tetradic
#1A2F62 #621A53 #624D1A #1A6229
square
#1A2F62 #621A53 #624D1A #1A6229
split-complementary
#1A2F62 #62291A #53621A
monochromatic
#060C18 #0D1832 #1A2F62 #274692 #345DC3

Accessibility & contrast

On white

12.91
#1A2F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1A2F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F62
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F62#FFFFFF#000000##FFFFFF
##1A2F621.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133564
Deuteranopia (green-blind)
#012E61
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a2f62;
/* rgb */ color: rgb(26, 47, 98);
/* oklch */ color: oklch(31.9% 0.094 264.7);
Tailwind
colors: {
  custom: {
    50: '#61678f',
    500: '#1a2f62',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f62;
$custom-light: #61678f;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f62",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 98
  },
  "hsl": {
    "h": 222.5,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31912,
    "c": 0.0943,
    "h": 264.7
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#1A2F62
secondary
#987E40
accent
#B447E1
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1A2F62

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

Preview Lab → · Contrast checker → · Palette generator →

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