#1A2F5C#1A2F5C

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

Color values

HEX#1A2F5C
RGBrgb(26, 47, 92)
HSLhsl(221, 56%, 23%)
HSVhsv(221, 72%, 36%)
CMYKcmyk(71.7%, 48.9%, 0%, 63.9%)
CIE-LABlab(20.14, 8.53, -29.48)
CIE-LCHlch(20.14, 30.69, 286.13°)
OKLaboklab(31.45% -0.0096 -0.0843)
OKLCHoklch(31.45% 0.085 263.5)
XYZxyz(3.3736, 3.0250, 10.5292)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F5C #5C471A
analogous
#1A505C #1A2F5C #261A5C
triadic
#1A2F5C #5C1A2F #2F5C1A
tetradic
#1A2F5C #5C1A50 #5C471A #1A5C26
square
#1A2F5C #5C1A50 #5C471A #1A5C26
split-complementary
#1A2F5C #5C261A #505C1A
monochromatic
#070C18 #0D172C #1A2F5C #27478C #3560BB

Accessibility & contrast

On white

13.08
#1A2F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1A2F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F5C
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F5C#FFFFFF#000000##FFFFFF
##1A2F5C1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19345E
Deuteranopia (green-blind)
#0D2E5B
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1a2f5c;
/* rgb */ color: rgb(26, 47, 92);
/* oklch */ color: oklch(31.4% 0.085 263.5);
Tailwind
colors: {
  custom: {
    50: '#5f678a',
    500: '#1a2f5c',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f5c;
$custom-light: #5f678a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f5c",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 92
  },
  "hsl": {
    "h": 220.909,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31446,
    "c": 0.08487,
    "h": 263.5
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#1A2F5C
secondary
#927840
accent
#AF49DF
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1A2F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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