#1F28A0#1F28A0

#1F28A0 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.188 H 269.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#1F28A0
RGBrgb(31, 40, 160)
HSLhsl(236, 68%, 37%)
HSVhsv(236, 81%, 63%)
CMYKcmyk(80.6%, 75%, 0%, 37.3%)
CIE-LABlab(24.78, 40.24, -64.95)
CIE-LCHlch(24.78, 76.41, 301.78°)
OKLaboklab(36.84% -0.0009 -0.1882)
OKLCHoklch(36.84% 0.188 269.7)
XYZxyz(7.6669, 4.3461, 33.6857)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F28A0 #A0971F
analogous
#1F68A0 #1F28A0 #571FA0
triadic
#1F28A0 #A01F28 #28A01F
tetradic
#1F28A0 #A01F68 #A0971F #1FA057
square
#1F28A0 #A01F68 #A0971F #1FA057
split-complementary
#1F28A0 #A0571F #68A01F
monochromatic
#0B0E39 #151B6D #1F28A0 #2935D3 #5A64DF

Accessibility & contrast

On white

11.23
#1F28A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F28A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F28A0
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F28A0#FFFFFF#000000##FFFFFF
##1F28A01.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f28a0;
/* rgb */ color: rgb(31, 40, 160);
/* oklch */ color: oklch(36.8% 0.188 269.7);
Tailwind
colors: {
  custom: {
    50: '#7363bd',
    500: '#1f28a0',
    950: '#000000',
  },
}
SCSS
$custom: #1f28a0;
$custom-light: #7363bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f28a0",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 235.814,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36842,
    "c": 0.18815,
    "h": 269.7
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#1F28A0
secondary
#C3BC58
accent
#DE3DEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #1F28A0

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

Preview Lab → · Contrast checker → · Palette generator →

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