#1D268C#1D268C

#1D268C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.165 H 270.2°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#1D268C
RGBrgb(29, 38, 140)
HSLhsl(235, 66%, 33%)
HSVhsv(235, 79%, 55%)
CMYKcmyk(79.3%, 72.9%, 0%, 45.1%)
CIE-LABlab(22.09, 34.15, -57.09)
CIE-LCHlch(22.09, 66.52, 300.89°)
OKLaboklab(34.24% 0.0007 -0.1653)
OKLCHoklch(34.24% 0.165 270.2)
XYZxyz(5.9318, 3.5402, 25.1766)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D268C #8C831D
analogous
#1D5D8C #1D268C #4B1D8C
triadic
#1D268C #8C1D26 #268C1D
tetradic
#1D268C #8C1D5D #8C831D #1D8C4B
square
#1D268C #8C1D5D #8C831D #1D8C4B
split-complementary
#1D268C #8C4B1D #5D8C1D
monochromatic
#080A27 #121859 #1D268C #2834BF #4A56D9

Accessibility & contrast

On white

12.29
#1D268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D268C
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D268C#FFFFFF#000000##FFFFFF
##1D268C1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d268c;
/* rgb */ color: rgb(29, 38, 140);
/* oklch */ color: oklch(34.2% 0.165 270.2);
Tailwind
colors: {
  custom: {
    50: '#6d61af',
    500: '#1d268c',
    950: '#000000',
  },
}
SCSS
$custom: #1d268c;
$custom-light: #6d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d268c",
  "rgb": {
    "r": 29,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 235.135,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34245,
    "c": 0.1653,
    "h": 270.2
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#1D268C
secondary
#BCB249
accent
#DB3FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D268C

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

Preview Lab → · Contrast checker → · Palette generator →

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