#1F147A#1F147A

#1F147A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.160 H 275.4°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#1F147A
RGBrgb(31, 20, 122)
HSLhsl(246, 72%, 28%)
HSVhsv(246, 84%, 48%)
CMYKcmyk(74.6%, 83.6%, 0%, 52.2%)
CIE-LABlab(16.49, 38.51, -54.97)
CIE-LCHlch(16.49, 67.12, 305.01°)
OKLaboklab(29.71% 0.015 -0.1589)
OKLCHoklch(29.71% 0.16 275.4)
XYZxyz(4.3269, 2.1963, 18.6045)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F147A #6F7A14
analogous
#143C7A #1F147A #52147A
triadic
#1F147A #7A1F14 #147A1F
tetradic
#1F147A #7A143C #6F7A14 #147A52
square
#1F147A #7A143C #6F7A14 #147A52
split-complementary
#1F147A #7A5214 #3C7A14
monochromatic
#07041A #120B45 #1F147A #2C1DAF #3F2CDC

Accessibility & contrast

On white

14.59
#1F147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F147A
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F147A#FFFFFF#000000##FFFFFF
##1F147A1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f147a;
/* rgb */ color: rgb(31, 20, 122);
/* oklch */ color: oklch(29.7% 0.160 275.4);
Tailwind
colors: {
  custom: {
    50: '#6b55a2',
    500: '#1f147a',
    950: '#000000',
  },
}
SCSS
$custom: #1f147a;
$custom-light: #6b55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f147a",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 246.471,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29712,
    "c": 0.15963,
    "h": 275.4
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#1F147A
secondary
#A3B03A
accent
#EF39DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F147A

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

Preview Lab → · Contrast checker → · Palette generator →

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