#2F2AB5#2F2AB5

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

Color values

HEX#2F2AB5
RGBrgb(47, 42, 181)
HSLhsl(242, 62%, 44%)
HSVhsv(242, 77%, 71%)
CMYKcmyk(74%, 76.8%, 0%, 29%)
CIE-LABlab(28.37, 47.43, -71.64)
CIE-LCHlch(28.37, 85.92, 303.51°)
OKLaboklab(40.3% 0.0125 -0.2073)
OKLCHoklch(40.3% 0.208 273.5)
XYZxyz(10.3380, 5.5954, 44.2423)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AB5 #B0B52A
analogous
#2A6AB5 #2F2AB5 #742AB5
triadic
#2F2AB5 #B52F2A #2AB52F
tetradic
#2F2AB5 #B52A6A #B0B52A #2AB574
square
#2F2AB5 #B52A6A #B0B52A #2AB574
split-complementary
#2F2AB5 #B5742A #6AB52A
monochromatic
#151352 #221E83 #2F2AB5 #4D48D4 #7D79E0

Accessibility & contrast

On white

9.91
#2F2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AB5
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AB5#FFFFFF#000000##FFFFFF
##2F2AB51.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2ab5;
/* rgb */ color: rgb(47, 42, 181);
/* oklch */ color: oklch(40.3% 0.208 273.5);
Tailwind
colors: {
  custom: {
    50: '#7d66cd',
    500: '#2f2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ab5;
$custom-light: #7d66cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ab5",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 242.158,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40296,
    "c": 0.20765,
    "h": 273.5
  },
  "luminance": 0.05596
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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