#2F24A2#2F24A2

#2F24A2 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.190 H 275.9°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2F24A2
RGBrgb(47, 36, 162)
HSLhsl(245, 64%, 39%)
HSVhsv(245, 78%, 64%)
CMYKcmyk(71%, 77.8%, 0%, 36.5%)
CIE-LABlab(25.18, 44.53, -65.48)
CIE-LCHlch(25.18, 79.19, 304.22°)
OKLaboklab(37.45% 0.0195 -0.1893)
OKLCHoklch(37.45% 0.19 275.9)
XYZxyz(8.3226, 4.4739, 34.6004)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F24A2 #97A224
analogous
#2458A2 #2F24A2 #6E24A2
triadic
#2F24A2 #A22F24 #24A22F
tetradic
#2F24A2 #A22458 #97A224 #24A26E
square
#2F24A2 #A22458 #97A224 #24A26E
split-complementary
#2F24A2 #A26E24 #58A224
monochromatic
#120E3E #201970 #2F24A2 #4032D1 #6E64DD

Accessibility & contrast

On white

11.08
#2F24A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F24A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F24A2
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F24A2#FFFFFF#000000##FFFFFF
##2F24A21.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f24a2;
/* rgb */ color: rgb(47, 36, 162);
/* oklch */ color: oklch(37.4% 0.190 275.9);
Tailwind
colors: {
  custom: {
    50: '#7a62bf',
    500: '#2f24a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f24a2;
$custom-light: #7a62bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f24a2",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 162
  },
  "hsl": {
    "h": 245.238,
    "s": 63.636,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37445,
    "c": 0.1903,
    "h": 275.9
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#2F24A2
secondary
#B9C260
accent
#E741D8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F24A2

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

Preview Lab → · Contrast checker → · Palette generator →

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