#1D276E#1D276E

#1D276E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.123 H 271.2°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#1D276E
RGBrgb(29, 39, 110)
HSLhsl(233, 58%, 27%)
HSVhsv(233, 74%, 43%)
CMYKcmyk(73.6%, 64.5%, 0%, 56.9%)
CIE-LABlab(19.38, 22.07, -42.48)
CIE-LCHlch(19.38, 47.87, 297.45°)
OKLaboklab(31.37% 0.0027 -0.1226)
OKLCHoklch(31.37% 0.123 271.2)
XYZxyz(4.0457, 2.8376, 15.0833)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D276E #6E641D
analogous
#1D4F6E #1D276E #3C1D6E
triadic
#1D276E #6E1D27 #276E1D
tetradic
#1D276E #6E1D4F #6E641D #1D6E3C
square
#1D276E #6E1D4F #6E641D #1D6E3C
split-complementary
#1D276E #6E3C1D #4F6E1D
monochromatic
#060918 #10163E #1D276E #2A389E #3A4CCB

Accessibility & contrast

On white

13.40
#1D276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1D276E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D276E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D276E#FFFFFF#000000##FFFFFF
##1D276E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d276e;
/* rgb */ color: rgb(29, 39, 110);
/* oklch */ color: oklch(31.4% 0.123 271.2);
Tailwind
colors: {
  custom: {
    50: '#656198',
    500: '#1d276e',
    950: '#000000',
  },
}
SCSS
$custom: #1d276e;
$custom-light: #656198;
$custom-dark: #000000;
JSON
{
  "hex": "#1d276e",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 232.593,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31372,
    "c": 0.12263,
    "h": 271.2
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#1D276E
secondary
#A29744
accent
#CE46E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1D276E

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

Preview Lab → · Contrast checker → · Palette generator →

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