#1F28A6#1F28A6

#1F28A6 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.196 H 269.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#1F28A6
RGBrgb(31, 40, 166)
HSLhsl(236, 69%, 39%)
HSVhsv(236, 81%, 65%)
CMYKcmyk(81.3%, 75.9%, 0%, 34.9%)
CIE-LABlab(25.45, 42.33, -67.50)
CIE-LCHlch(25.45, 79.67, 302.09°)
OKLaboklab(37.51% -0.0018 -0.1955)
OKLCHoklch(37.51% 0.196 269.5)
XYZxyz(8.2044, 4.5611, 36.5170)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F28A6 #A69D1F
analogous
#1F6BA6 #1F28A6 #591FA6
triadic
#1F28A6 #A61F28 #28A61F
tetradic
#1F28A6 #A61F6B #A69D1F #1FA659
square
#1F28A6 #A61F6B #A69D1F #1FA659
split-complementary
#1F28A6 #A6591F #6BA61F
monochromatic
#0C0F3F #151C72 #1F28A6 #2B36D7 #5E67E1

Accessibility & contrast

On white

10.98
#1F28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F28A6
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F28A6#FFFFFF#000000##FFFFFF
##1F28A61.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f28a6;
/* rgb */ color: rgb(31, 40, 166);
/* oklch */ color: oklch(37.5% 0.196 269.5);
Tailwind
colors: {
  custom: {
    50: '#7563c2',
    500: '#1f28a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f28a6;
$custom-light: #7563c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f28a6",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 236,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37508,
    "c": 0.19555,
    "h": 269.5
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#1F28A6
secondary
#C5BE5B
accent
#E03CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #1F28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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