#1A2F9F#1A2F9F

#1A2F9F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.181 H 267.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#1A2F9F
RGBrgb(26, 47, 159)
HSLhsl(231, 72%, 36%)
HSVhsv(231, 84%, 62%)
CMYKcmyk(83.6%, 70.4%, 0%, 37.6%)
CIE-LABlab(26.02, 35.19, -62.30)
CIE-LCHlch(26.02, 71.55, 299.46°)
OKLaboklab(37.64% -0.0081 -0.1805)
OKLCHoklch(37.64% 0.181 267.4)
XYZxyz(7.6983, 4.7549, 33.3062)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F9F #9F8A1A
analogous
#1A729F #1A2F9F #481A9F
triadic
#1A2F9F #9F1A2F #2F9F1A
tetradic
#1A2F9F #9F1A72 #9F8A1A #1A9F48
square
#1A2F9F #9F1A72 #9F8A1A #1A9F48
split-complementary
#1A2F9F #9F481A #729F1A
monochromatic
#091036 #111F6A #1A2F9F #233FD4 #5168E3

Accessibility & contrast

On white

10.76
#1A2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1A2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F9F
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F9F#FFFFFF#000000##FFFFFF
##1A2F9F1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1a2f9f;
/* rgb */ color: rgb(26, 47, 159);
/* oklch */ color: oklch(37.6% 0.181 267.4);
Tailwind
colors: {
  custom: {
    50: '#7168bd',
    500: '#1a2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f9f;
$custom-light: #7168bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f9f",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 230.526,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37642,
    "c": 0.18073,
    "h": 267.4
  },
  "luminance": 0.04756
}

Semantic roles & 50–950 ramp

primary
#1A2F9F
secondary
#C5B350
accent
#D239EF
background
#F7F6FB
surface
#EDEBF7
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1A2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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