#2F2FA4#2F2FA4

#2F2FA4 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.182 H 274.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2F2FA4
RGBrgb(47, 47, 164)
HSLhsl(240, 55%, 41%)
HSVhsv(240, 71%, 64%)
CMYKcmyk(71.3%, 71.3%, 0%, 35.7%)
CIE-LABlab(27.62, 38.93, -62.67)
CIE-LCHlch(27.62, 73.78, 301.85°)
OKLaboklab(39.24% 0.0131 -0.1812)
OKLCHoklch(39.24% 0.182 274.1)
XYZxyz(8.8874, 5.3168, 35.6726)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FA4 #A4A42F
analogous
#2F6AA4 #2F2FA4 #6A2FA4
triadic
#2F2FA4 #A42F2F #2FA42F
tetradic
#2F2FA4 #A42F6A #A4A42F #2FA46A
square
#2F2FA4 #A42F6A #A4A42F #2FA46A
split-complementary
#2F2FA4 #A46A2F #6AA42F
monochromatic
#141445 #212174 #2F2FA4 #4646CA #7676D8

Accessibility & contrast

On white

10.18
#2F2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FA4
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FA4#FFFFFF#000000##FFFFFF
##2F2FA41.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2fa4;
/* rgb */ color: rgb(47, 47, 164);
/* oklch */ color: oklch(39.2% 0.182 274.1);
Tailwind
colors: {
  custom: {
    50: '#7968c0',
    500: '#2f2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fa4;
$custom-light: #7968c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fa4",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 240,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39238,
    "c": 0.18166,
    "h": 274.1
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#2F2FA4
secondary
#C0C06F
accent
#DF49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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