#1D267E#1D267E

#1D267E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.147 H 270.9°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#1D267E
RGBrgb(29, 38, 126)
HSLhsl(234, 63%, 30%)
HSVhsv(234, 77%, 49%)
CMYKcmyk(77%, 69.8%, 0%, 50.6%)
CIE-LABlab(20.65, 28.94, -50.66)
CIE-LCHlch(20.65, 58.34, 299.74°)
OKLaboklab(32.77% 0.0023 -0.1466)
OKLCHoklch(32.77% 0.147 270.9)
XYZxyz(4.9644, 3.1533, 20.0816)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D267E #7E751D
analogous
#1D567E #1D267E #441D7E
triadic
#1D267E #7E1D26 #267E1D
tetradic
#1D267E #7E1D56 #7E751D #1D7E44
square
#1D267E #7E1D56 #7E751D #1D7E44
split-complementary
#1D267E #7E441D #567E1D
monochromatic
#06081B #12174C #1D267E #2835B0 #424FD3

Accessibility & contrast

On white

12.88
#1D267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D267E
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D267E#FFFFFF#000000##FFFFFF
##1D267E1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d267e;
/* rgb */ color: rgb(29, 38, 126);
/* oklch */ color: oklch(32.8% 0.147 270.9);
Tailwind
colors: {
  custom: {
    50: '#6a60a4',
    500: '#1d267e',
    950: '#000000',
  },
}
SCSS
$custom: #1d267e;
$custom-light: #6a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d267e",
  "rgb": {
    "r": 29,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 234.433,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32769,
    "c": 0.14657,
    "h": 270.9
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#1D267E
secondary
#B1A745
accent
#D642E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D267E

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

Preview Lab → · Contrast checker → · Palette generator →

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