#2F2AB6#2F2AB6

#2F2AB6 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.4% C 0.209 H 273.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2F2AB6
RGBrgb(47, 42, 182)
HSLhsl(242, 63%, 44%)
HSVhsv(242, 77%, 71%)
CMYKcmyk(74.2%, 76.9%, 0%, 28.6%)
CIE-LABlab(28.48, 47.75, -72.05)
CIE-LCHlch(28.48, 86.44, 303.53°)
OKLaboklab(40.41% 0.0123 -0.2085)
OKLCHoklch(40.41% 0.209 273.4)
XYZxyz(10.4409, 5.6366, 44.7846)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AB6 #B1B62A
analogous
#2A6BB6 #2F2AB6 #752AB6
triadic
#2F2AB6 #B62F2A #2AB62F
tetradic
#2F2AB6 #B62A6B #B1B62A #2AB675
square
#2F2AB6 #B62A6B #B1B62A #2AB675
split-complementary
#2F2AB6 #B6752A #6BB62A
monochromatic
#151353 #221F84 #2F2AB6 #4D48D5 #7E7AE0

Accessibility & contrast

On white

9.87
#2F2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AB6
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AB6#FFFFFF#000000##FFFFFF
##2F2AB61.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABA
Deuteranopia (green-blind)
#003CB4
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f2ab6;
/* rgb */ color: rgb(47, 42, 182);
/* oklch */ color: oklch(40.4% 0.209 273.4);
Tailwind
colors: {
  custom: {
    50: '#7e66cd',
    500: '#2f2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ab6;
$custom-light: #7e66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ab6",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 242.143,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40405,
    "c": 0.20884,
    "h": 273.4
  },
  "luminance": 0.05638
}

Semantic roles & 50–950 ramp

primary
#2F2AB6
secondary
#C5C873
accent
#E642E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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