#2F24A5#2F24A5

#2F24A5 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.194 H 275.6°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2F24A5
RGBrgb(47, 36, 165)
HSLhsl(245, 64%, 39%)
HSVhsv(245, 78%, 65%)
CMYKcmyk(71.5%, 78.2%, 0%, 35.3%)
CIE-LABlab(25.51, 45.49, -66.76)
CIE-LCHlch(25.51, 80.78, 304.27°)
OKLaboklab(37.77% 0.0188 -0.193)
OKLCHoklch(37.77% 0.194 275.6)
XYZxyz(8.5925, 4.5819, 36.0216)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F24A5 #9AA524
analogous
#245AA5 #2F24A5 #7024A5
triadic
#2F24A5 #A52F24 #24A52F
tetradic
#2F24A5 #A5245A #9AA524 #24A570
square
#2F24A5 #A5245A #9AA524 #24A570
split-complementary
#2F24A5 #A57024 #5AA524
monochromatic
#120E41 #211973 #2F24A5 #4134D3 #7066DE

Accessibility & contrast

On white

10.96
#2F24A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F24A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F24A5
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F24A5#FFFFFF#000000##FFFFFF
##2F24A51.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f24a5;
/* rgb */ color: rgb(47, 36, 165);
/* oklch */ color: oklch(37.8% 0.194 275.6);
Tailwind
colors: {
  custom: {
    50: '#7a62c1',
    500: '#2f24a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f24a5;
$custom-light: #7a62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f24a5",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 165
  },
  "hsl": {
    "h": 245.116,
    "s": 64.179,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37773,
    "c": 0.19392,
    "h": 275.6
  },
  "luminance": 0.04583
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F24A5

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

Preview Lab → · Contrast checker → · Palette generator →

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