#1A2F5B#1A2F5B

#1A2F5B is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.083 H 263.2°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#1A2F5B
RGBrgb(26, 47, 91)
HSLhsl(221, 56%, 23%)
HSVhsv(221, 71%, 36%)
CMYKcmyk(71.4%, 48.4%, 0%, 64.3%)
CIE-LABlab(20.07, 8.12, -28.93)
CIE-LCHlch(20.07, 30.05, 285.67°)
OKLaboklab(31.37% -0.0098 -0.0827)
OKLCHoklch(31.37% 0.083 263.2)
XYZxyz(3.3302, 3.0077, 10.3005)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F5B #5B461A
analogous
#1A4F5B #1A2F5B #251A5B
triadic
#1A2F5B #5B1A2F #2F5B1A
tetradic
#1A2F5B #5B1A4F #5B461A #1A5B25
square
#1A2F5B #5B1A4F #5B461A #1A5B25
split-complementary
#1A2F5B #5B251A #4F5B1A
monochromatic
#070C18 #0C162B #1A2F5B #28488B #3560BA

Accessibility & contrast

On white

13.11
#1A2F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1A2F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F5B
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F5B#FFFFFF#000000##FFFFFF
##1A2F5B1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A345D
Deuteranopia (green-blind)
#0E2E5A
Tritanopia (blue-blind)
#003940
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1a2f5b;
/* rgb */ color: rgb(26, 47, 91);
/* oklch */ color: oklch(31.4% 0.083 263.2);
Tailwind
colors: {
  custom: {
    50: '#5f678a',
    500: '#1a2f5b',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f5b;
$custom-light: #5f678a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f5b",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 91
  },
  "hsl": {
    "h": 220.615,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3137,
    "c": 0.08328,
    "h": 263.2
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#1A2F5B
secondary
#917740
accent
#AE49DF
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060B
muted
#797A7C

Preview Lab

Preview with #1A2F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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