#1F43B2#1F43B2

#1F43B2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.181 H 265.4°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#1F43B2
RGBrgb(31, 67, 178)
HSLhsl(225, 70%, 41%)
HSVhsv(225, 83%, 70%)
CMYKcmyk(82.6%, 62.4%, 0%, 30.2%)
CIE-LABlab(32.96, 29.68, -62.33)
CIE-LCHlch(32.96, 69.03, 295.46°)
OKLaboklab(43.33% -0.0147 -0.1804)
OKLCHoklch(43.33% 0.181 265.4)
XYZxyz(10.6053, 7.5187, 43.0032)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F43B2 #B28E1F
analogous
#1F8CB2 #1F43B2 #441FB2
triadic
#1F43B2 #B21F43 #43B21F
tetradic
#1F43B2 #B21F8C #B28E1F #1FB244
square
#1F43B2 #B21F8C #B28E1F #1FB244
split-complementary
#1F43B2 #B2441F #8CB21F
monochromatic
#0D1C4A #162F7E #1F43B2 #335CDB #6786E5

Accessibility & contrast

On white

8.39
#1F43B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#1F43B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F43B2
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F43B2#FFFFFF#000000##FFFFFF
##1F43B21.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f43b2;
/* rgb */ color: rgb(31, 67, 178);
/* oklch */ color: oklch(43.3% 0.181 265.4);
Tailwind
colors: {
  custom: {
    50: '#7576ca',
    500: '#1f43b2',
    950: '#000000',
  },
}
SCSS
$custom: #1f43b2;
$custom-light: #7576ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f43b2",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 178
  },
  "hsl": {
    "h": 225.306,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43328,
    "c": 0.18098,
    "h": 265.4
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#1F43B2
secondary
#CAB163
accent
#C13BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F43B2

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

Preview Lab → · Contrast checker → · Palette generator →

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