#2F2EA4#2F2EA4

#2F2EA4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.183 H 274.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2F2EA4
RGBrgb(47, 46, 164)
HSLhsl(241, 56%, 41%)
HSVhsv(241, 72%, 64%)
CMYKcmyk(71.3%, 72%, 0%, 35.7%)
CIE-LABlab(27.40, 39.53, -63.03)
CIE-LCHlch(27.40, 74.40, 302.09°)
OKLaboklab(39.08% 0.0137 -0.1822)
OKLCHoklch(39.08% 0.183 274.3)
XYZxyz(8.8479, 5.2378, 35.6595)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EA4 #A3A42E
analogous
#2E68A4 #2F2EA4 #6A2EA4
triadic
#2F2EA4 #A42F2E #2EA42F
tetradic
#2F2EA4 #A42E68 #A3A42E #2EA46A
square
#2F2EA4 #A42E68 #A3A42E #2EA46A
split-complementary
#2F2EA4 #A46A2E #68A42E
monochromatic
#141344 #212174 #2F2EA4 #4645CB #7574D8

Accessibility & contrast

On white

10.25
#2F2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EA4
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EA4#FFFFFF#000000##FFFFFF
##2F2EA41.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2ea4;
/* rgb */ color: rgb(47, 46, 164);
/* oklch */ color: oklch(39.1% 0.183 274.3);
Tailwind
colors: {
  custom: {
    50: '#7968c0',
    500: '#2f2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ea4;
$custom-light: #7968c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ea4",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 240.508,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39083,
    "c": 0.18274,
    "h": 274.3
  },
  "luminance": 0.05239
}

Semantic roles & 50–950 ramp

primary
#2F2EA4
secondary
#BFC06E
accent
#DF48DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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