#1D268E#1D268E

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

Color values

HEX#1D268E
RGBrgb(29, 38, 142)
HSLhsl(235, 66%, 34%)
HSVhsv(235, 80%, 56%)
CMYKcmyk(79.6%, 73.2%, 0%, 44.3%)
CIE-LABlab(22.30, 34.88, -57.98)
CIE-LCHlch(22.30, 67.66, 301.03°)
OKLaboklab(34.46% 0.0004 -0.1679)
OKLCHoklch(34.46% 0.168 270.2)
XYZxyz(6.0806, 3.5998, 25.9603)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D268E #8E851D
analogous
#1D5E8E #1D268E #4C1D8E
triadic
#1D268E #8E1D26 #268E1D
tetradic
#1D268E #8E1D5E #8E851D #1D8E4C
square
#1D268E #8E1D5E #8E851D #1D8E4C
split-complementary
#1D268E #8E4C1D #5E8E1D
monochromatic
#080B28 #13185B #1D268E #2734C1 #4B57DA

Accessibility & contrast

On white

12.21
#1D268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1D268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D268E
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D268E#FFFFFF#000000##FFFFFF
##1D268E1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d268e;
/* rgb */ color: rgb(29, 38, 142);
/* oklch */ color: oklch(34.5% 0.168 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e61b0',
    500: '#1d268e',
    950: '#000000',
  },
}
SCSS
$custom: #1d268e;
$custom-light: #6e61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d268e",
  "rgb": {
    "r": 29,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 235.221,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34461,
    "c": 0.1679,
    "h": 270.2
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#1D268E
secondary
#BDB34A
accent
#DB3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1D268E

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

Preview Lab → · Contrast checker → · Palette generator →

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