#1F24B3#1F24B3

#1F24B3 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.5% C 0.215 H 269.2°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#1F24B3
RGBrgb(31, 36, 179)
HSLhsl(238, 70%, 41%)
HSVhsv(238, 83%, 70%)
CMYKcmyk(82.7%, 79.9%, 0%, 29.8%)
CIE-LABlab(26.18, 48.85, -74.10)
CIE-LCHlch(26.18, 88.76, 303.40°)
OKLaboklab(38.46% -0.0029 -0.2146)
OKLCHoklch(38.46% 0.215 269.2)
XYZxyz(9.3299, 4.8066, 43.0751)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F24B3 #B3AE1F
analogous
#1F6EB3 #1F24B3 #641FB3
triadic
#1F24B3 #B31F24 #24B31F
tetradic
#1F24B3 #B31F6E #B3AE1F #1FB364
square
#1F24B3 #B31F6E #B3AE1F #1FB364
split-complementary
#1F24B3 #B3641F #6EB31F
monochromatic
#0D0F4B #161A7F #1F24B3 #3339DC #686CE5

Accessibility & contrast

On white

10.71
#1F24B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F24B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F24B3
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F24B3#FFFFFF#000000##FFFFFF
##1F24B31.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f24b3;
/* rgb */ color: rgb(31, 36, 179);
/* oklch */ color: oklch(38.5% 0.215 269.2);
Tailwind
colors: {
  custom: {
    50: '#7962cb',
    500: '#1f24b3',
    950: '#000000',
  },
}
SCSS
$custom: #1f24b3;
$custom-light: #7962cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f24b3",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 179
  },
  "hsl": {
    "h": 237.973,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38457,
    "c": 0.21466,
    "h": 269.2
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#1F24B3
secondary
#CAC764
accent
#E73BED
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #1F24B3

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

Preview Lab → · Contrast checker → · Palette generator →

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