#1F148A#1F148A

#1F148A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.179 H 273.3°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#1F148A
RGBrgb(31, 20, 138)
HSLhsl(246, 75%, 31%)
HSVhsv(246, 86%, 54%)
CMYKcmyk(77.5%, 85.5%, 0%, 45.9%)
CIE-LABlab(18.48, 43.61, -61.80)
CIE-LCHlch(18.48, 75.64, 305.21°)
OKLaboklab(31.67% 0.0104 -0.1787)
OKLCHoklch(31.67% 0.179 273.3)
XYZxyz(5.4011, 2.6260, 24.2620)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F148A #7F8A14
analogous
#14448A #1F148A #5A148A
triadic
#1F148A #8A1F14 #148A1F
tetradic
#1F148A #8A1444 #7F8A14 #148A5A
square
#1F148A #8A1444 #7F8A14 #148A5A
split-complementary
#1F148A #8A5A14 #448A14
monochromatic
#07051F #130C55 #1F148A #2B1CBF #4636E2

Accessibility & contrast

On white

13.77
#1F148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F148A
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F148A#FFFFFF#000000##FFFFFF
##1F148A1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f148a;
/* rgb */ color: rgb(31, 20, 138);
/* oklch */ color: oklch(31.7% 0.179 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f56ad',
    500: '#1f148a',
    950: '#000000',
  },
}
SCSS
$custom: #1f148a;
$custom-light: #6f56ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f148a",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 245.593,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31667,
    "c": 0.17904,
    "h": 273.3
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#1F148A
secondary
#B2BE3C
accent
#F136E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F148A

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

Preview Lab → · Contrast checker → · Palette generator →

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