#2F2ABA#2F2ABA

#2F2ABA is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.8% C 0.214 H 273.1°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2F2ABA
RGBrgb(47, 42, 186)
HSLhsl(242, 63%, 45%)
HSVhsv(242, 77%, 73%)
CMYKcmyk(74.7%, 77.4%, 0%, 27.1%)
CIE-LABlab(28.91, 49.03, -73.71)
CIE-LCHlch(28.91, 88.53, 303.63°)
OKLaboklab(40.84% 0.0115 -0.2133)
OKLCHoklch(40.84% 0.214 273.1)
XYZxyz(10.8602, 5.8043, 46.9928)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2ABA #B5BA2A
analogous
#2A6DBA #2F2ABA #772ABA
triadic
#2F2ABA #BA2F2A #2ABA2F
tetradic
#2F2ABA #BA2A6D #B5BA2A #2ABA77
square
#2F2ABA #BA2A6D #B5BA2A #2ABA77
split-complementary
#2F2ABA #BA772A #6DBA2A
monochromatic
#161356 #221F88 #2F2ABA #504BD6 #807DE2

Accessibility & contrast

On white

9.72
#2F2ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F2ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2ABA
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2ABA#FFFFFF#000000##FFFFFF
##2F2ABA1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBE
Deuteranopia (green-blind)
#003DB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f2aba;
/* rgb */ color: rgb(47, 42, 186);
/* oklch */ color: oklch(40.8% 0.214 273.1);
Tailwind
colors: {
  custom: {
    50: '#7f66d0',
    500: '#2f2aba',
    950: '#000000',
  },
}
SCSS
$custom: #2f2aba;
$custom-light: #7f66d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2aba",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 242.083,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4084,
    "c": 0.21359,
    "h": 273.1
  },
  "luminance": 0.05805
}

Semantic roles & 50–950 ramp

primary
#2F2ABA
secondary
#C7CA76
accent
#E642E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2F2ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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