#1F43A7#1F43A7

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

Color values

HEX#1F43A7
RGBrgb(31, 67, 167)
HSLhsl(224, 69%, 39%)
HSVhsv(224, 81%, 65%)
CMYKcmyk(81.4%, 59.9%, 0%, 34.5%)
CIE-LABlab(32.02, 25.42, -57.29)
CIE-LCHlch(32.02, 62.68, 293.92°)
OKLaboklab(42.34% -0.0149 -0.1656)
OKLCHoklch(42.34% 0.166 264.9)
XYZxyz(9.5448, 7.0945, 37.4180)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F43A7 #A7831F
analogous
#1F87A7 #1F43A7 #3F1FA7
triadic
#1F43A7 #A71F43 #43A71F
tetradic
#1F43A7 #A71F87 #A7831F #1FA73F
square
#1F43A7 #A71F87 #A7831F #1FA73F
split-complementary
#1F43A7 #A73F1F #87A71F
monochromatic
#0C1A40 #152E73 #1F43A7 #2B59D8 #5F82E1

Accessibility & contrast

On white

8.68
#1F43A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1F43A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F43A7
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F43A7#FFFFFF#000000##FFFFFF
##1F43A71.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f43a7;
/* rgb */ color: rgb(31, 67, 167);
/* oklch */ color: oklch(42.3% 0.166 264.9);
Tailwind
colors: {
  custom: {
    50: '#7376c2',
    500: '#1f43a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f43a7;
$custom-light: #7376c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f43a7",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 167
  },
  "hsl": {
    "h": 224.118,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42338,
    "c": 0.16631,
    "h": 264.9
  },
  "luminance": 0.07096
}

Semantic roles & 50–950 ramp

primary
#1F43A7
secondary
#C6AA5C
accent
#BD3CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F43A7

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

Preview Lab → · Contrast checker → · Palette generator →

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