#1F147C#1F147C

#1F147C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.162 H 275.1°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#1F147C
RGBrgb(31, 20, 124)
HSLhsl(246, 72%, 28%)
HSVhsv(246, 84%, 49%)
CMYKcmyk(75%, 83.9%, 0%, 51.4%)
CIE-LABlab(16.73, 39.16, -55.84)
CIE-LCHlch(16.73, 68.21, 305.04°)
OKLaboklab(29.95% 0.0144 -0.1615)
OKLCHoklch(29.95% 0.162 275.1)
XYZxyz(4.4521, 2.2464, 19.2638)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F147C #717C14
analogous
#143D7C #1F147C #53147C
triadic
#1F147C #7C1F14 #147C1F
tetradic
#1F147C #7C143D #717C14 #147C53
square
#1F147C #7C143D #717C14 #147C53
split-complementary
#1F147C #7C5314 #3D7C14
monochromatic
#07041A #120B47 #1F147C #2C1DB1 #402DDD

Accessibility & contrast

On white

14.49
#1F147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F147C
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F147C#FFFFFF#000000##FFFFFF
##1F147C1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f147c;
/* rgb */ color: rgb(31, 20, 124);
/* oklch */ color: oklch(30.0% 0.162 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c55a3',
    500: '#1f147c',
    950: '#000000',
  },
}
SCSS
$custom: #1f147c;
$custom-light: #6c55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f147c",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 246.346,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29954,
    "c": 0.16211,
    "h": 275.1
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F147C

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

Preview Lab → · Contrast checker → · Palette generator →

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