#2F24A1#2F24A1

#2F24A1 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.189 H 276.0°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2F24A1
RGBrgb(47, 36, 161)
HSLhsl(245, 63%, 39%)
HSVhsv(245, 78%, 63%)
CMYKcmyk(70.8%, 77.6%, 0%, 36.9%)
CIE-LABlab(25.07, 44.21, -65.05)
CIE-LCHlch(25.07, 78.65, 304.20°)
OKLaboklab(37.34% 0.0198 -0.188)
OKLCHoklch(37.34% 0.189 276)
XYZxyz(8.2341, 4.4385, 34.1341)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F24A1 #96A124
analogous
#2457A1 #2F24A1 #6D24A1
triadic
#2F24A1 #A12F24 #24A12F
tetradic
#2F24A1 #A12457 #96A124 #24A16D
square
#2F24A1 #A12457 #96A124 #24A16D
split-complementary
#2F24A1 #A16D24 #57A124
monochromatic
#120E3D #20196F #2F24A1 #3F31D1 #6E63DC

Accessibility & contrast

On white

11.12
#2F24A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F24A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F24A1
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F24A1#FFFFFF#000000##FFFFFF
##2F24A11.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f24a1;
/* rgb */ color: rgb(47, 36, 161);
/* oklch */ color: oklch(37.3% 0.189 276.0);
Tailwind
colors: {
  custom: {
    50: '#7961be',
    500: '#2f24a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f24a1;
$custom-light: #7961be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f24a1",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 161
  },
  "hsl": {
    "h": 245.28,
    "s": 63.452,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37336,
    "c": 0.18908,
    "h": 276
  },
  "luminance": 0.04439
}

Semantic roles & 50–950 ramp

primary
#2F24A1
secondary
#B9C25F
accent
#E641D8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F24A1

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

Preview Lab → · Contrast checker → · Palette generator →

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