#1D267F#1D267F

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

Color values

HEX#1D267F
RGBrgb(29, 38, 127)
HSLhsl(234, 63%, 31%)
HSVhsv(234, 77%, 50%)
CMYKcmyk(77.2%, 70.1%, 0%, 50.2%)
CIE-LABlab(20.75, 29.32, -51.13)
CIE-LCHlch(20.75, 58.94, 299.83°)
OKLaboklab(32.87% 0.0022 -0.1479)
OKLCHoklch(32.87% 0.148 270.9)
XYZxyz(5.0293, 3.1792, 20.4232)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D267F #7F761D
analogous
#1D577F #1D267F #451D7F
triadic
#1D267F #7F1D26 #267F1D
tetradic
#1D267F #7F1D57 #7F761D #1D7F45
square
#1D267F #7F1D57 #7F761D #1D7F45
split-complementary
#1D267F #7F451D #577F1D
monochromatic
#06081B #12174D #1D267F #2835B1 #4250D4

Accessibility & contrast

On white

12.84
#1D267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1D267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D267F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D267F#FFFFFF#000000##FFFFFF
##1D267F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d267f;
/* rgb */ color: rgb(29, 38, 127);
/* oklch */ color: oklch(32.9% 0.148 270.9);
Tailwind
colors: {
  custom: {
    50: '#6a60a5',
    500: '#1d267f',
    950: '#000000',
  },
}
SCSS
$custom: #1d267f;
$custom-light: #6a60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d267f",
  "rgb": {
    "r": 29,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 234.49,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32872,
    "c": 0.14794,
    "h": 270.9
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#1D267F
secondary
#B2A845
accent
#D742E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D267F

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

Preview Lab → · Contrast checker → · Palette generator →

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