#1D277B#1D277B

#1D277B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.141 H 270.8°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#1D277B
RGBrgb(29, 39, 123)
HSLhsl(234, 62%, 30%)
HSVhsv(234, 76%, 48%)
CMYKcmyk(76.4%, 68.3%, 0%, 51.8%)
CIE-LABlab(20.60, 27.12, -48.83)
CIE-LCHlch(20.60, 55.85, 299.05°)
OKLaboklab(32.65% 0.002 -0.1412)
OKLCHoklch(32.65% 0.141 270.8)
XYZxyz(4.8061, 3.1418, 19.0882)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D277B #7B711D
analogous
#1D567B #1D277B #421D7B
triadic
#1D277B #7B1D27 #277B1D
tetradic
#1D277B #7B1D56 #7B711D #1D7B42
square
#1D277B #7B1D56 #7B711D #1D7B42
split-complementary
#1D277B #7B421D #567B1D
monochromatic
#060819 #111749 #1D277B #2937AD #4050D2

Accessibility & contrast

On white

12.90
#1D277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D277B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D277B#FFFFFF#000000##FFFFFF
##1D277B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d277b;
/* rgb */ color: rgb(29, 39, 123);
/* oklch */ color: oklch(32.6% 0.141 270.8);
Tailwind
colors: {
  custom: {
    50: '#6961a2',
    500: '#1d277b',
    950: '#000000',
  },
}
SCSS
$custom: #1d277b;
$custom-light: #6961a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d277b",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 233.617,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32646,
    "c": 0.1412,
    "h": 270.8
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#1D277B
secondary
#AFA345
accent
#D443E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D277B

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

Preview Lab → · Contrast checker → · Palette generator →

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