#2F2DA4#2F2DA4

#2F2DA4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.184 H 274.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2F2DA4
RGBrgb(47, 45, 164)
HSLhsl(241, 57%, 41%)
HSVhsv(241, 73%, 64%)
CMYKcmyk(71.3%, 72.6%, 0%, 35.7%)
CIE-LABlab(27.19, 40.12, -63.38)
CIE-LCHlch(27.19, 75.01, 302.34°)
OKLaboklab(38.93% 0.0143 -0.1832)
OKLCHoklch(38.93% 0.184 274.4)
XYZxyz(8.8093, 5.1606, 35.6466)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DA4 #A2A42D
analogous
#2D66A4 #2F2DA4 #6A2DA4
triadic
#2F2DA4 #A42F2D #2DA42F
tetradic
#2F2DA4 #A42D66 #A2A42D #2DA46A
square
#2F2DA4 #A42D66 #A2A42D #2DA46A
split-complementary
#2F2DA4 #A46A2D #66A42D
monochromatic
#131344 #212074 #2F2DA4 #4543CB #7573D9

Accessibility & contrast

On white

10.33
#2F2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F2DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DA4
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DA4#FFFFFF#000000##FFFFFF
##2F2DA41.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2da4;
/* rgb */ color: rgb(47, 45, 164);
/* oklch */ color: oklch(38.9% 0.184 274.4);
Tailwind
colors: {
  custom: {
    50: '#7967c0',
    500: '#2f2da4',
    950: '#000000',
  },
}
SCSS
$custom: #2f2da4;
$custom-light: #7967c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2da4",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 241.008,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38929,
    "c": 0.1838,
    "h": 274.4
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#2F2DA4
secondary
#BFC06D
accent
#E048DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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