#1F28A9#1F28A9

#1F28A9 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.199 H 269.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#1F28A9
RGBrgb(31, 40, 169)
HSLhsl(236, 69%, 39%)
HSVhsv(236, 82%, 66%)
CMYKcmyk(81.7%, 76.3%, 0%, 33.7%)
CIE-LABlab(25.78, 43.36, -68.76)
CIE-LCHlch(25.78, 81.28, 302.24°)
OKLaboklab(37.84% -0.0023 -0.1992)
OKLCHoklch(37.84% 0.199 269.3)
XYZxyz(8.4828, 4.6725, 37.9832)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F28A9 #A9A01F
analogous
#1F6DA9 #1F28A9 #5B1FA9
triadic
#1F28A9 #A91F28 #28A91F
tetradic
#1F28A9 #A91F6D #A9A01F #1FA95B
square
#1F28A9 #A91F6D #A9A01F #1FA95B
split-complementary
#1F28A9 #A95B1F #6DA91F
monochromatic
#0C1042 #161C75 #1F28A9 #2D38D8 #6069E2

Accessibility & contrast

On white

10.85
#1F28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F28A9
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F28A9#FFFFFF#000000##FFFFFF
##1F28A91.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#0036A7
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f28a9;
/* rgb */ color: rgb(31, 40, 169);
/* oklch */ color: oklch(37.8% 0.199 269.3);
Tailwind
colors: {
  custom: {
    50: '#7664c4',
    500: '#1f28a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f28a9;
$custom-light: #7664c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f28a9",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 236.087,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37843,
    "c": 0.19921,
    "h": 269.3
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#1F28A9
secondary
#C7C05D
accent
#E03CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #1F28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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