#1D2F7F#1D2F7F

#1D2F7F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.137 H 268.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#1D2F7F
RGBrgb(29, 47, 127)
HSLhsl(229, 63%, 31%)
HSVhsv(229, 77%, 50%)
CMYKcmyk(77.2%, 63%, 0%, 50.2%)
CIE-LABlab(23.09, 23.17, -47.29)
CIE-LCHlch(23.09, 52.67, 296.10°)
OKLaboklab(34.59% -0.0038 -0.1366)
OKLCHoklch(34.59% 0.137 268.4)
XYZxyz(5.3527, 3.8260, 20.5309)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F7F #7F6D1D
analogous
#1D607F #1D2F7F #3C1D7F
triadic
#1D2F7F #7F1D2F #2F7F1D
tetradic
#1D2F7F #7F1D60 #7F6D1D #1D7F3C
square
#1D2F7F #7F1D60 #7F6D1D #1D7F3C
split-complementary
#1D2F7F #7F3C1D #607F1D
monochromatic
#060A1B #121D4D #1D2F7F #2841B1 #425DD4

Accessibility & contrast

On white

11.90
#1D2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1D2F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F7F
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F7F#FFFFFF#000000##FFFFFF
##1D2F7F1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d2f7f;
/* rgb */ color: rgb(29, 47, 127);
/* oklch */ color: oklch(34.6% 0.137 268.4);
Tailwind
colors: {
  custom: {
    50: '#6967a5',
    500: '#1d2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f7f;
$custom-light: #6967a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f7f",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 228.98,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3459,
    "c": 0.13667,
    "h": 268.4
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#1D2F7F
secondary
#B29E45
accent
#C842E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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