#1F28A8#1F28A8

#1F28A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.198 H 269.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#1F28A8
RGBrgb(31, 40, 168)
HSLhsl(236, 69%, 39%)
HSVhsv(236, 82%, 66%)
CMYKcmyk(81.5%, 76.2%, 0%, 34.1%)
CIE-LABlab(25.67, 43.01, -68.34)
CIE-LCHlch(25.67, 80.75, 302.19°)
OKLaboklab(37.73% -0.0021 -0.198)
OKLCHoklch(37.73% 0.198 269.4)
XYZxyz(8.3893, 4.6351, 37.4907)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F28A8 #A89F1F
analogous
#1F6DA8 #1F28A8 #5B1FA8
triadic
#1F28A8 #A81F28 #28A81F
tetradic
#1F28A8 #A81F6D #A89F1F #1FA85B
square
#1F28A8 #A81F6D #A89F1F #1FA85B
split-complementary
#1F28A8 #A85B1F #6DA81F
monochromatic
#0C0F41 #151C74 #1F28A8 #2C37D8 #6068E2

Accessibility & contrast

On white

10.90
#1F28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F28A8
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F28A8#FFFFFF#000000##FFFFFF
##1F28A81.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f28a8;
/* rgb */ color: rgb(31, 40, 168);
/* oklch */ color: oklch(37.7% 0.198 269.4);
Tailwind
colors: {
  custom: {
    50: '#7564c3',
    500: '#1f28a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f28a8;
$custom-light: #7564c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f28a8",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 236.058,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37731,
    "c": 0.19799,
    "h": 269.4
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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