#2F24A8#2F24A8

#2F24A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.198 H 275.2°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2F24A8
RGBrgb(47, 36, 168)
HSLhsl(245, 65%, 40%)
HSVhsv(245, 79%, 66%)
CMYKcmyk(72%, 78.6%, 0%, 34.1%)
CIE-LABlab(25.84, 46.44, -68.02)
CIE-LCHlch(25.84, 82.36, 304.32°)
OKLaboklab(38.1% 0.0181 -0.1967)
OKLCHoklch(38.1% 0.198 275.2)
XYZxyz(8.8687, 4.6924, 37.4765)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F24A8 #9DA824
analogous
#245BA8 #2F24A8 #7124A8
triadic
#2F24A8 #A82F24 #24A82F
tetradic
#2F24A8 #A8245B #9DA824 #24A871
square
#2F24A8 #A8245B #9DA824 #24A871
split-complementary
#2F24A8 #A87124 #5BA824
monochromatic
#130E43 #211976 #2F24A8 #4335D4 #7268DF

Accessibility & contrast

On white

10.83
#2F24A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F24A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F24A8
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F24A8#FFFFFF#000000##FFFFFF
##2F24A81.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f24a8;
/* rgb */ color: rgb(47, 36, 168);
/* oklch */ color: oklch(38.1% 0.198 275.2);
Tailwind
colors: {
  custom: {
    50: '#7b62c3',
    500: '#2f24a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f24a8;
$custom-light: #7b62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f24a8",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 245,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.38102,
    "c": 0.19753,
    "h": 275.2
  },
  "luminance": 0.04693
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F24A8

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

Preview Lab → · Contrast checker → · Palette generator →

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