#2F24A7#2F24A7

#2F24A7 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.196 H 275.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2F24A7
RGBrgb(47, 36, 167)
HSLhsl(245, 65%, 40%)
HSVhsv(245, 78%, 65%)
CMYKcmyk(71.9%, 78.4%, 0%, 34.5%)
CIE-LABlab(25.73, 46.12, -67.60)
CIE-LCHlch(25.73, 81.84, 304.30°)
OKLaboklab(37.99% 0.0183 -0.1955)
OKLCHoklch(37.99% 0.196 275.3)
XYZxyz(8.7759, 4.6553, 36.9878)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F24A7 #9CA724
analogous
#245BA7 #2F24A7 #7024A7
triadic
#2F24A7 #A72F24 #24A72F
tetradic
#2F24A7 #A7245B #9CA724 #24A770
square
#2F24A7 #A7245B #9CA724 #24A770
split-complementary
#2F24A7 #A77024 #5BA724
monochromatic
#130E42 #211975 #2F24A7 #4235D3 #7167DE

Accessibility & contrast

On white

10.87
#2F24A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F24A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F24A7
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F24A7#FFFFFF#000000##FFFFFF
##2F24A71.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f24a7;
/* rgb */ color: rgb(47, 36, 167);
/* oklch */ color: oklch(38.0% 0.196 275.3);
Tailwind
colors: {
  custom: {
    50: '#7b62c2',
    500: '#2f24a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f24a7;
$custom-light: #7b62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f24a7",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 245.038,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37992,
    "c": 0.19632,
    "h": 275.3
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#2F24A7
secondary
#BCC463
accent
#E840D9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F24A7

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

Preview Lab → · Contrast checker → · Palette generator →

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