#2F2AB4#2F2AB4

#2F2AB4 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.2% C 0.206 H 273.5°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2F2AB4
RGBrgb(47, 42, 180)
HSLhsl(242, 62%, 44%)
HSVhsv(242, 77%, 71%)
CMYKcmyk(73.9%, 76.7%, 0%, 29.4%)
CIE-LABlab(28.26, 47.11, -71.22)
CIE-LCHlch(28.26, 85.39, 303.48°)
OKLaboklab(40.19% 0.0127 -0.2061)
OKLCHoklch(40.19% 0.206 273.5)
XYZxyz(10.2357, 5.5545, 43.7039)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AB4 #AFB42A
analogous
#2A6AB4 #2F2AB4 #742AB4
triadic
#2F2AB4 #B42F2A #2AB42F
tetradic
#2F2AB4 #B42A6A #AFB42A #2AB474
square
#2F2AB4 #B42A6A #AFB42A #2AB474
split-complementary
#2F2AB4 #B4742A #6AB42A
monochromatic
#151351 #221E82 #2F2AB4 #4C47D4 #7C79E0

Accessibility & contrast

On white

9.95
#2F2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F2AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AB4
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AB4#FFFFFF#000000##FFFFFF
##2F2AB41.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f2ab4;
/* rgb */ color: rgb(47, 42, 180);
/* oklch */ color: oklch(40.2% 0.206 273.5);
Tailwind
colors: {
  custom: {
    50: '#7d66cc',
    500: '#2f2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ab4;
$custom-light: #7d66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ab4",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 242.174,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40188,
    "c": 0.20645,
    "h": 273.5
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

primary
#2F2AB4
secondary
#C4C872
accent
#E543DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2F2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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