#1D128F#1D128F

#1D128F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.187 H 272.1°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#1D128F
RGBrgb(29, 18, 143)
HSLhsl(245, 78%, 32%)
HSVhsv(245, 87%, 56%)
CMYKcmyk(79.7%, 87.4%, 0%, 43.9%)
CIE-LABlab(18.70, 45.91, -64.57)
CIE-LCHlch(18.70, 79.23, 305.41°)
OKLaboklab(31.97% 0.0068 -0.1867)
OKLCHoklch(31.97% 0.187 272.1)
XYZxyz(5.6793, 2.6764, 26.1985)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D128F #848F12
analogous
#12468F #1D128F #5C128F
triadic
#1D128F #8F1D12 #128F1D
tetradic
#1D128F #8F1246 #848F12 #128F5C
square
#1D128F #8F1246 #848F12 #128F5C
split-complementary
#1D128F #8F5C12 #468F12
monochromatic
#070422 #120B59 #1D128F #2819C5 #4536E6

Accessibility & contrast

On white

13.68
#1D128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1D128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D128F
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D128F#FFFFFF#000000##FFFFFF
##1D128F1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d128f;
/* rgb */ color: rgb(29, 18, 143);
/* oklch */ color: oklch(32.0% 0.187 272.1);
Tailwind
colors: {
  custom: {
    50: '#7056b1',
    500: '#1d128f',
    950: '#000000',
  },
}
SCSS
$custom: #1d128f;
$custom-light: #7056b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d128f",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 245.28,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31966,
    "c": 0.18686,
    "h": 272.1
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#1D128F
secondary
#B7C33A
accent
#F434E3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D128F

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

Preview Lab → · Contrast checker → · Palette generator →

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