#1D307E#1D307E

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

Color values

HEX#1D307E
RGBrgb(29, 48, 126)
HSLhsl(228, 63%, 30%)
HSVhsv(228, 77%, 49%)
CMYKcmyk(77%, 61.9%, 0%, 50.6%)
CIE-LABlab(23.27, 22.08, -46.36)
CIE-LCHlch(23.27, 51.35, 295.46°)
OKLaboklab(34.7% -0.0045 -0.1339)
OKLCHoklch(34.7% 0.134 268.1)
XYZxyz(5.3282, 3.8809, 20.2029)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D307E #7E6B1D
analogous
#1D617E #1D307E #3A1D7E
triadic
#1D307E #7E1D30 #307E1D
tetradic
#1D307E #7E1D61 #7E6B1D #1D7E3A
square
#1D307E #7E1D61 #7E6B1D #1D7E3A
split-complementary
#1D307E #7E3A1D #617E1D
monochromatic
#060A1B #121D4C #1D307E #2843B0 #425ED3

Accessibility & contrast

On white

11.82
#1D307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D307E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D307E#FFFFFF#000000##FFFFFF
##1D307E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d307e;
/* rgb */ color: rgb(29, 48, 126);
/* oklch */ color: oklch(34.7% 0.134 268.1);
Tailwind
colors: {
  custom: {
    50: '#6968a4',
    500: '#1d307e',
    950: '#000000',
  },
}
SCSS
$custom: #1d307e;
$custom-light: #6968a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d307e",
  "rgb": {
    "r": 29,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 228.247,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.347,
    "c": 0.13395,
    "h": 268.1
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D307E

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

Preview Lab → · Contrast checker → · Palette generator →

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