#1D307F#1D307F

#1D307F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.135 H 268.1°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#1D307F
RGBrgb(29, 48, 127)
HSLhsl(228, 63%, 31%)
HSVhsv(228, 77%, 50%)
CMYKcmyk(77.2%, 62.2%, 0%, 50.2%)
CIE-LABlab(23.36, 22.47, -46.85)
CIE-LCHlch(23.36, 51.96, 295.63°)
OKLaboklab(34.79% -0.0045 -0.1353)
OKLCHoklch(34.79% 0.135 268.1)
XYZxyz(5.3931, 3.9068, 20.5444)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D307F #7F6C1D
analogous
#1D617F #1D307F #3B1D7F
triadic
#1D307F #7F1D30 #307F1D
tetradic
#1D307F #7F1D61 #7F6C1D #1D7F3B
square
#1D307F #7F1D61 #7F6C1D #1D7F3B
split-complementary
#1D307F #7F3B1D #617F1D
monochromatic
#060A1B #121D4D #1D307F #2843B1 #425FD4

Accessibility & contrast

On white

11.79
#1D307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1D307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D307F
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D307F#FFFFFF#000000##FFFFFF
##1D307F1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d307f;
/* rgb */ color: rgb(29, 48, 127);
/* oklch */ color: oklch(34.8% 0.135 268.1);
Tailwind
colors: {
  custom: {
    50: '#6968a5',
    500: '#1d307f',
    950: '#000000',
  },
}
SCSS
$custom: #1d307f;
$custom-light: #6968a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d307f",
  "rgb": {
    "r": 29,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 228.367,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34793,
    "c": 0.13538,
    "h": 268.1
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#1D307F
secondary
#B29D45
accent
#C642E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D307F

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

Preview Lab → · Contrast checker → · Palette generator →

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