#1F24A8#1F24A8

#1F24A8 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.2% C 0.202 H 269.7°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#1F24A8
RGBrgb(31, 36, 168)
HSLhsl(238, 69%, 39%)
HSVhsv(238, 82%, 66%)
CMYKcmyk(81.5%, 78.6%, 0%, 34.1%)
CIE-LABlab(24.89, 45.24, -69.63)
CIE-LCHlch(24.89, 83.04, 303.02°)
OKLaboklab(37.18% -0.0009 -0.2017)
OKLCHoklch(37.18% 0.202 269.7)
XYZxyz(8.2614, 4.3792, 37.4481)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F24A8 #A8A31F
analogous
#1F69A8 #1F24A8 #5F1FA8
triadic
#1F24A8 #A81F24 #24A81F
tetradic
#1F24A8 #A81F69 #A8A31F #1FA85F
square
#1F24A8 #A81F69 #A8A31F #1FA85F
split-complementary
#1F24A8 #A85F1F #69A81F
monochromatic
#0C0E41 #151974 #1F24A8 #2C32D8 #6065E2

Accessibility & contrast

On white

11.19
#1F24A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F24A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F24A8
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F24A8#FFFFFF#000000##FFFFFF
##1F24A81.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f24a8;
/* rgb */ color: rgb(31, 36, 168);
/* oklch */ color: oklch(37.2% 0.202 269.7);
Tailwind
colors: {
  custom: {
    50: '#7661c3',
    500: '#1f24a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f24a8;
$custom-light: #7661c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f24a8",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 237.81,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3718,
    "c": 0.20169,
    "h": 269.7
  },
  "luminance": 0.0438
}

Semantic roles & 50–950 ramp

primary
#1F24A8
secondary
#C6C25D
accent
#E53CEC
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F24A8

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

Preview Lab → · Contrast checker → · Palette generator →

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