#1D2F7E#1D2F7E

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

Color values

HEX#1D2F7E
RGBrgb(29, 47, 126)
HSLhsl(229, 63%, 30%)
HSVhsv(229, 77%, 49%)
CMYKcmyk(77%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.00, 22.78, -46.81)
CIE-LCHlch(23.00, 52.05, 295.95°)
OKLaboklab(34.5% -0.0038 -0.1352)
OKLCHoklch(34.5% 0.135 268.4)
XYZxyz(5.2878, 3.8000, 20.1894)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F7E #7E6C1D
analogous
#1D5F7E #1D2F7E #3B1D7E
triadic
#1D2F7E #7E1D2F #2F7E1D
tetradic
#1D2F7E #7E1D5F #7E6C1D #1D7E3B
square
#1D2F7E #7E1D5F #7E6C1D #1D7E3B
split-complementary
#1D2F7E #7E3B1D #5F7E1D
monochromatic
#060A1B #121C4C #1D2F7E #2842B0 #425DD3

Accessibility & contrast

On white

11.93
#1D2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1D2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F7E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F7E#FFFFFF#000000##FFFFFF
##1D2F7E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d2f7e;
/* rgb */ color: rgb(29, 47, 126);
/* oklch */ color: oklch(34.5% 0.135 268.4);
Tailwind
colors: {
  custom: {
    50: '#6967a4',
    500: '#1d2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f7e;
$custom-light: #6967a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f7e",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 228.866,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34496,
    "c": 0.13524,
    "h": 268.4
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#1D2F7E
secondary
#B19D45
accent
#C742E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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