#1F24A9#1F24A9

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

Color values

HEX#1F24A9
RGBrgb(31, 36, 169)
HSLhsl(238, 69%, 39%)
HSVhsv(238, 82%, 66%)
CMYKcmyk(81.7%, 78.7%, 0%, 33.7%)
CIE-LABlab(25.00, 45.58, -70.04)
CIE-LCHlch(25.00, 83.56, 303.05°)
OKLaboklab(37.3% -0.0011 -0.2029)
OKLCHoklch(37.3% 0.203 269.7)
XYZxyz(8.3549, 4.4167, 37.9406)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F24A9 #A9A41F
analogous
#1F69A9 #1F24A9 #5F1FA9
triadic
#1F24A9 #A91F24 #24A91F
tetradic
#1F24A9 #A91F69 #A9A41F #1FA95F
square
#1F24A9 #A91F69 #A9A41F #1FA95F
split-complementary
#1F24A9 #A95F1F #69A91F
monochromatic
#0C0E42 #161975 #1F24A9 #2D33D8 #6065E2

Accessibility & contrast

On white

11.15
#1F24A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F24A9
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F24A9#FFFFFF#000000##FFFFFF
##1F24A91.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AD
Deuteranopia (green-blind)
#0034A7
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f24a9;
/* rgb */ color: rgb(31, 36, 169);
/* oklch */ color: oklch(37.3% 0.203 269.7);
Tailwind
colors: {
  custom: {
    50: '#7661c4',
    500: '#1f24a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f24a9;
$custom-light: #7661c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f24a9",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 169
  },
  "hsl": {
    "h": 237.826,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37295,
    "c": 0.20288,
    "h": 269.7
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#1F24A9
secondary
#C7C35D
accent
#E53CEC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F24A9

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

Preview Lab → · Contrast checker → · Palette generator →

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