#1F29A6#1F29A6

#1F29A6 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.195 H 269.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#1F29A6
RGBrgb(31, 41, 166)
HSLhsl(236, 69%, 39%)
HSVhsv(236, 81%, 65%)
CMYKcmyk(81.3%, 75.3%, 0%, 34.9%)
CIE-LABlab(25.65, 41.75, -67.16)
CIE-LCHlch(25.65, 79.07, 301.87°)
OKLaboklab(37.65% -0.0022 -0.1946)
OKLCHoklch(37.65% 0.195 269.4)
XYZxyz(8.2386, 4.6294, 36.5284)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F29A6 #A69C1F
analogous
#1F6CA6 #1F29A6 #581FA6
triadic
#1F29A6 #A61F29 #29A61F
tetradic
#1F29A6 #A61F6C #A69C1F #1FA658
square
#1F29A6 #A61F6C #A69C1F #1FA658
split-complementary
#1F29A6 #A6581F #6CA61F
monochromatic
#0C103F #151C72 #1F29A6 #2B38D7 #5E68E1

Accessibility & contrast

On white

10.90
#1F29A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F29A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F29A6
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F29A6#FFFFFF#000000##FFFFFF
##1F29A61.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f29a6;
/* rgb */ color: rgb(31, 41, 166);
/* oklch */ color: oklch(37.7% 0.195 269.4);
Tailwind
colors: {
  custom: {
    50: '#7564c2',
    500: '#1f29a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f29a6;
$custom-light: #7564c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f29a6",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 235.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37654,
    "c": 0.19457,
    "h": 269.4
  },
  "luminance": 0.0463
}

Semantic roles & 50–950 ramp

primary
#1F29A6
secondary
#C5BE5B
accent
#DE3CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #1F29A6

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

Preview Lab → · Contrast checker → · Palette generator →

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