#1D1F94#1D1F94

#1D1F94 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.183 H 270.7°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#1D1F94
RGBrgb(29, 31, 148)
HSLhsl(239, 67%, 35%)
HSVhsv(239, 80%, 58%)
CMYKcmyk(80.4%, 79.1%, 0%, 42%)
CIE-LABlab(21.50, 41.14, -63.02)
CIE-LCHlch(21.50, 75.26, 303.14°)
OKLaboklab(34.09% 0.0022 -0.1825)
OKLCHoklch(34.09% 0.183 270.7)
XYZxyz(6.3402, 3.3786, 28.3292)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F94 #94921D
analogous
#1D5A94 #1D1F94 #571D94
triadic
#1D1F94 #941D1F #1F941D
tetradic
#1D1F94 #941D5A #94921D #1D9457
square
#1D1F94 #941D5A #94921D #1D9457
split-complementary
#1D1F94 #94571D #5A941D
monochromatic
#090A2E #131461 #1D1F94 #272AC7 #4F51DC

Accessibility & contrast

On white

12.53
#1D1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1D1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F94
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F94#FFFFFF#000000##FFFFFF
##1D1F941.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002D92
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d1f94;
/* rgb */ color: rgb(29, 31, 148);
/* oklch */ color: oklch(34.1% 0.183 270.7);
Tailwind
colors: {
  custom: {
    50: '#705db5',
    500: '#1d1f94',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f94;
$custom-light: #705db5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f94",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 238.992,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3409,
    "c": 0.18251,
    "h": 270.7
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#1D1F94
secondary
#BFBD4E
accent
#E73EEA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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