#1F147D#1F147D

#1F147D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.163 H 275.0°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#1F147D
RGBrgb(31, 20, 125)
HSLhsl(246, 72%, 28%)
HSVhsv(246, 84%, 49%)
CMYKcmyk(75.2%, 84%, 0%, 51%)
CIE-LABlab(16.85, 39.48, -56.28)
CIE-LCHlch(16.85, 68.75, 305.05°)
OKLaboklab(30.08% 0.0141 -0.1627)
OKLCHoklch(30.08% 0.163 275)
XYZxyz(4.5157, 2.2718, 19.5986)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F147D #727D14
analogous
#143D7D #1F147D #53147D
triadic
#1F147D #7D1F14 #147D1F
tetradic
#1F147D #7D143D #727D14 #147D53
square
#1F147D #7D143D #727D14 #147D53
split-complementary
#1F147D #7D5314 #3D7D14
monochromatic
#07041A #120C48 #1F147D #2C1CB2 #402EDE

Accessibility & contrast

On white

14.44
#1F147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F147D
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F147D#FFFFFF#000000##FFFFFF
##1F147D1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f147d;
/* rgb */ color: rgb(31, 20, 125);
/* oklch */ color: oklch(30.1% 0.163 275.0);
Tailwind
colors: {
  custom: {
    50: '#6c55a4',
    500: '#1f147d',
    950: '#000000',
  },
}
SCSS
$custom: #1f147d;
$custom-light: #6c55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f147d",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 246.286,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30075,
    "c": 0.16334,
    "h": 275
  },
  "luminance": 0.02272
}

Semantic roles & 50–950 ramp

primary
#1F147D
secondary
#A6B23A
accent
#EF39DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F147D

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

Preview Lab → · Contrast checker → · Palette generator →

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