#1F29A1#1F29A1

#1F29A1 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.188 H 269.6°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#1F29A1
RGBrgb(31, 41, 161)
HSLhsl(235, 68%, 38%)
HSVhsv(235, 81%, 63%)
CMYKcmyk(80.7%, 74.5%, 0%, 36.9%)
CIE-LABlab(25.11, 40.00, -65.03)
CIE-LCHlch(25.11, 76.35, 301.60°)
OKLaboklab(37.1% -0.0014 -0.1884)
OKLCHoklch(37.1% 0.188 269.6)
XYZxyz(7.7888, 4.4495, 34.1596)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F29A1 #A1971F
analogous
#1F6AA1 #1F29A1 #561FA1
triadic
#1F29A1 #A11F29 #29A11F
tetradic
#1F29A1 #A11F6A #A1971F #1FA156
square
#1F29A1 #A11F6A #A1971F #1FA156
split-complementary
#1F29A1 #A1561F #6AA11F
monochromatic
#0B0F3A #151C6E #1F29A1 #2936D4 #5B65DF

Accessibility & contrast

On white

11.11
#1F29A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F29A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F29A1
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F29A1#FFFFFF#000000##FFFFFF
##1F29A11.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f29a1;
/* rgb */ color: rgb(31, 41, 161);
/* oklch */ color: oklch(37.1% 0.188 269.6);
Tailwind
colors: {
  custom: {
    50: '#7364be',
    500: '#1f29a1',
    950: '#000000',
  },
}
SCSS
$custom: #1f29a1;
$custom-light: #7364be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f29a1",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 161
  },
  "hsl": {
    "h": 235.385,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37103,
    "c": 0.18839,
    "h": 269.6
  },
  "luminance": 0.0445
}

Semantic roles & 50–950 ramp

primary
#1F29A1
secondary
#C4BB58
accent
#DD3DEB
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #1F29A1

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

Preview Lab → · Contrast checker → · Palette generator →

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