#2F2AB7#2F2AB7

#2F2AB7 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.5% C 0.210 H 273.3°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2F2AB7
RGBrgb(47, 42, 183)
HSLhsl(242, 63%, 44%)
HSVhsv(242, 77%, 72%)
CMYKcmyk(74.3%, 77%, 0%, 28.2%)
CIE-LABlab(28.59, 48.07, -72.47)
CIE-LCHlch(28.59, 86.96, 303.56°)
OKLaboklab(40.51% 0.0121 -0.2097)
OKLCHoklch(40.51% 0.21 273.3)
XYZxyz(10.5446, 5.6781, 45.3308)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AB7 #B2B72A
analogous
#2A6CB7 #2F2AB7 #762AB7
triadic
#2F2AB7 #B72F2A #2AB72F
tetradic
#2F2AB7 #B72A6C #B2B72A #2AB776
square
#2F2AB7 #B72A6C #B2B72A #2AB776
split-complementary
#2F2AB7 #B7762A #6CB72A
monochromatic
#151353 #221F85 #2F2AB7 #4E49D5 #7E7BE1

Accessibility & contrast

On white

9.83
#2F2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AB7
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AB7#FFFFFF#000000##FFFFFF
##2F2AB71.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2ab7;
/* rgb */ color: rgb(47, 42, 183);
/* oklch */ color: oklch(40.5% 0.210 273.3);
Tailwind
colors: {
  custom: {
    50: '#7e66ce',
    500: '#2f2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ab7;
$custom-light: #7e66ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ab7",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 242.128,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40513,
    "c": 0.21003,
    "h": 273.3
  },
  "luminance": 0.05679
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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