#1F29A8#1F29A8

#1F29A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.197 H 269.3°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#1F29A8
RGBrgb(31, 41, 168)
HSLhsl(236, 69%, 39%)
HSVhsv(236, 82%, 66%)
CMYKcmyk(81.5%, 75.6%, 0%, 34.1%)
CIE-LABlab(25.87, 42.44, -68.00)
CIE-LCHlch(25.87, 80.16, 301.97°)
OKLaboklab(37.88% -0.0025 -0.197)
OKLCHoklch(37.88% 0.197 269.3)
XYZxyz(8.4235, 4.7034, 37.5021)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F29A8 #A89E1F
analogous
#1F6EA8 #1F29A8 #591FA8
triadic
#1F29A8 #A81F29 #29A81F
tetradic
#1F29A8 #A81F6E #A89E1F #1FA859
square
#1F29A8 #A81F6E #A89E1F #1FA859
split-complementary
#1F29A8 #A8591F #6EA81F
monochromatic
#0C1041 #151C74 #1F29A8 #2C39D8 #6069E2

Accessibility & contrast

On white

10.82
#1F29A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F29A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F29A8
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F29A8#FFFFFF#000000##FFFFFF
##1F29A81.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f29a8;
/* rgb */ color: rgb(31, 41, 168);
/* oklch */ color: oklch(37.9% 0.197 269.3);
Tailwind
colors: {
  custom: {
    50: '#7564c3',
    500: '#1f29a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f29a8;
$custom-light: #7564c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f29a8",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 168
  },
  "hsl": {
    "h": 235.62,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37876,
    "c": 0.19703,
    "h": 269.3
  },
  "luminance": 0.04704
}

Semantic roles & 50–950 ramp

primary
#1F29A8
secondary
#C6BF5D
accent
#DF3CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #1F29A8

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

Preview Lab → · Contrast checker → · Palette generator →

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