#2F24A4#2F24A4

#2F24A4 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.7% C 0.193 H 275.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2F24A4
RGBrgb(47, 36, 164)
HSLhsl(245, 64%, 39%)
HSVhsv(245, 78%, 64%)
CMYKcmyk(71.3%, 78%, 0%, 35.7%)
CIE-LABlab(25.40, 45.17, -66.33)
CIE-LCHlch(25.40, 80.25, 304.25°)
OKLaboklab(37.66% 0.019 -0.1918)
OKLCHoklch(37.66% 0.193 275.7)
XYZxyz(8.5018, 4.5456, 35.5441)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F24A4 #99A424
analogous
#2459A4 #2F24A4 #6F24A4
triadic
#2F24A4 #A42F24 #24A42F
tetradic
#2F24A4 #A42459 #99A424 #24A46F
square
#2F24A4 #A42459 #99A424 #24A46F
split-complementary
#2F24A4 #A46F24 #59A424
monochromatic
#120E40 #211972 #2F24A4 #4133D2 #6F65DD

Accessibility & contrast

On white

11.00
#2F24A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F24A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F24A4
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F24A4#FFFFFF#000000##FFFFFF
##2F24A41.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f24a4;
/* rgb */ color: rgb(47, 36, 164);
/* oklch */ color: oklch(37.7% 0.193 275.7);
Tailwind
colors: {
  custom: {
    50: '#7a62c0',
    500: '#2f24a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f24a4;
$custom-light: #7a62c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f24a4",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 164
  },
  "hsl": {
    "h": 245.156,
    "s": 64,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37663,
    "c": 0.19272,
    "h": 275.7
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#2F24A4
secondary
#BAC361
accent
#E741D9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F24A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2F24A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva