#1F148D#1F148D

#1F148D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.183 H 273.0°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#1F148D
RGBrgb(31, 20, 141)
HSLhsl(245, 75%, 32%)
HSVhsv(245, 86%, 55%)
CMYKcmyk(78%, 85.8%, 0%, 44.7%)
CIE-LABlab(18.86, 44.55, -63.05)
CIE-LCHlch(18.86, 77.20, 305.24°)
OKLaboklab(32.04% 0.0095 -0.1824)
OKLCHoklch(32.04% 0.183 273)
XYZxyz(5.6213, 2.7141, 25.4218)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F148D #828D14
analogous
#14458D #1F148D #5C148D
triadic
#1F148D #8D1F14 #148D1F
tetradic
#1F148D #8D1445 #828D14 #148D5C
square
#1F148D #8D1445 #828D14 #148D5C
split-complementary
#1F148D #8D5C14 #458D14
monochromatic
#070522 #130C57 #1F148D #2B1CC3 #4839E3

Accessibility & contrast

On white

13.61
#1F148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F148D
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F148D#FFFFFF#000000##FFFFFF
##1F148D1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f148d;
/* rgb */ color: rgb(31, 20, 141);
/* oklch */ color: oklch(32.0% 0.183 273.0);
Tailwind
colors: {
  custom: {
    50: '#7056b0',
    500: '#1f148d',
    950: '#000000',
  },
}
SCSS
$custom: #1f148d;
$custom-light: #7056b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f148d",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 245.455,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32038,
    "c": 0.1826,
    "h": 273
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#1F148D
secondary
#B5C13C
accent
#F236E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F148D

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

Preview Lab → · Contrast checker → · Palette generator →

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