#1D2F8C#1D2F8C

#1D2F8C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.155 H 268.5°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#1D2F8C
RGBrgb(29, 47, 140)
HSLhsl(230, 66%, 33%)
HSVhsv(230, 79%, 55%)
CMYKcmyk(79.3%, 66.4%, 0%, 45.1%)
CIE-LABlab(24.28, 28.25, -53.48)
CIE-LCHlch(24.28, 60.48, 297.84°)
OKLaboklab(35.84% -0.0041 -0.1547)
OKLCHoklch(35.84% 0.155 268.5)
XYZxyz(6.2552, 4.1870, 25.2844)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F8C #8C7A1D
analogous
#1D668C #1D2F8C #421D8C
triadic
#1D2F8C #8C1D2F #2F8C1D
tetradic
#1D2F8C #8C1D66 #8C7A1D #1D8C42
square
#1D2F8C #8C1D66 #8C7A1D #1D8C42
split-complementary
#1D2F8C #8C421D #668C1D
monochromatic
#080D27 #121E59 #1D2F8C #2840BF #4A61D9

Accessibility & contrast

On white

11.43
#1D2F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1D2F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F8C
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F8C#FFFFFF#000000##FFFFFF
##1D2F8C1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d2f8c;
/* rgb */ color: rgb(29, 47, 140);
/* oklch */ color: oklch(35.8% 0.155 268.5);
Tailwind
colors: {
  custom: {
    50: '#6d67af',
    500: '#1d2f8c',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f8c;
$custom-light: #6d67af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f8c",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 140
  },
  "hsl": {
    "h": 230.27,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35837,
    "c": 0.15481,
    "h": 268.5
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#1D2F8C
secondary
#BCA949
accent
#CD3FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D2F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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