#1F28B3#1F28B3

#1F28B3 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.0% C 0.211 H 268.9°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#1F28B3
RGBrgb(31, 40, 179)
HSLhsl(236, 70%, 41%)
HSVhsv(236, 83%, 70%)
CMYKcmyk(82.7%, 77.7%, 0%, 29.8%)
CIE-LABlab(26.91, 46.73, -72.88)
CIE-LCHlch(26.91, 86.58, 302.67°)
OKLaboklab(38.97% -0.0039 -0.2112)
OKLCHoklch(38.97% 0.211 268.9)
XYZxyz(9.4578, 5.0624, 43.1178)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F28B3 #B3AA1F
analogous
#1F72B3 #1F28B3 #601FB3
triadic
#1F28B3 #B31F28 #28B31F
tetradic
#1F28B3 #B31F72 #B3AA1F #1FB360
square
#1F28B3 #B31F72 #B3AA1F #1FB360
split-complementary
#1F28B3 #B3601F #72B31F
monochromatic
#0D114B #161C7F #1F28B3 #333EDC #686FE5

Accessibility & contrast

On white

10.43
#1F28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F28B3
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F28B3#FFFFFF#000000##FFFFFF
##1F28B31.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B7
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f28b3;
/* rgb */ color: rgb(31, 40, 179);
/* oklch */ color: oklch(39.0% 0.211 268.9);
Tailwind
colors: {
  custom: {
    50: '#7864cb',
    500: '#1f28b3',
    950: '#000000',
  },
}
SCSS
$custom: #1f28b3;
$custom-light: #7864cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f28b3",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 236.351,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38974,
    "c": 0.2112,
    "h": 268.9
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

primary
#1F28B3
secondary
#CAC464
accent
#E23BED
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #1F28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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