#1F43A8#1F43A8

#1F43A8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.168 H 264.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#1F43A8
RGBrgb(31, 67, 168)
HSLhsl(224, 69%, 39%)
HSVhsv(224, 82%, 66%)
CMYKcmyk(81.5%, 60.1%, 0%, 34.1%)
CIE-LABlab(32.10, 25.81, -57.76)
CIE-LCHlch(32.10, 63.26, 294.08°)
OKLaboklab(42.43% -0.0148 -0.167)
OKLCHoklch(42.43% 0.168 264.9)
XYZxyz(9.6376, 7.1316, 37.9068)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F43A8 #A8841F
analogous
#1F88A8 #1F43A8 #401FA8
triadic
#1F43A8 #A81F43 #43A81F
tetradic
#1F43A8 #A81F88 #A8841F #1FA840
square
#1F43A8 #A81F88 #A8841F #1FA840
split-complementary
#1F43A8 #A8401F #88A81F
monochromatic
#0C1A41 #152E74 #1F43A8 #2C59D8 #6082E2

Accessibility & contrast

On white

8.65
#1F43A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1F43A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F43A8
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F43A8#FFFFFF#000000##FFFFFF
##1F43A81.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#005D6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f43a8;
/* rgb */ color: rgb(31, 67, 168);
/* oklch */ color: oklch(42.4% 0.168 264.9);
Tailwind
colors: {
  custom: {
    50: '#7376c3',
    500: '#1f43a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f43a8;
$custom-light: #7376c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f43a8",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 168
  },
  "hsl": {
    "h": 224.234,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42427,
    "c": 0.16766,
    "h": 264.9
  },
  "luminance": 0.07133
}

Semantic roles & 50–950 ramp

primary
#1F43A8
secondary
#C6AA5D
accent
#BE3CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1F43A8

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

Preview Lab → · Contrast checker → · Palette generator →

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