#1D268D#1D268D

#1D268D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.167 H 270.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#1D268D
RGBrgb(29, 38, 141)
HSLhsl(235, 66%, 33%)
HSVhsv(235, 79%, 55%)
CMYKcmyk(79.4%, 73%, 0%, 44.7%)
CIE-LABlab(22.20, 34.52, -57.53)
CIE-LCHlch(22.20, 67.09, 300.96°)
OKLaboklab(34.35% 0.0006 -0.1666)
OKLCHoklch(34.35% 0.167 270.2)
XYZxyz(6.0059, 3.5699, 25.5667)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D268D #8D841D
analogous
#1D5E8D #1D268D #4C1D8D
triadic
#1D268D #8D1D26 #268D1D
tetradic
#1D268D #8D1D5E #8D841D #1D8D4C
square
#1D268D #8D1D5E #8D841D #1D8D4C
split-complementary
#1D268D #8D4C1D #5E8D1D
monochromatic
#080B27 #13185A #1D268D #2734C0 #4B56DA

Accessibility & contrast

On white

12.25
#1D268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1D268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D268D
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D268D#FFFFFF#000000##FFFFFF
##1D268D1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d268d;
/* rgb */ color: rgb(29, 38, 141);
/* oklch */ color: oklch(34.4% 0.167 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e61af',
    500: '#1d268d',
    950: '#000000',
  },
}
SCSS
$custom: #1d268d;
$custom-light: #6e61af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d268d",
  "rgb": {
    "r": 29,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 235.179,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34353,
    "c": 0.1666,
    "h": 270.2
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#1D268D
secondary
#BCB34A
accent
#DB3FE9
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1D268D

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

Preview Lab → · Contrast checker → · Palette generator →

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