#2F2C99#2F2C99

#2F2C99 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.171 H 275.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2F2C99
RGBrgb(47, 44, 153)
HSLhsl(242, 55%, 39%)
HSVhsv(242, 71%, 60%)
CMYKcmyk(69.3%, 71.2%, 0%, 40%)
CIE-LABlab(25.88, 36.97, -58.84)
CIE-LCHlch(25.88, 69.49, 302.14°)
OKLaboklab(37.66% 0.0167 -0.17)
OKLCHoklch(37.66% 0.171 275.6)
XYZxyz(7.8209, 4.7049, 30.6268)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C99 #96992C
analogous
#2C5F99 #2F2C99 #652C99
triadic
#2F2C99 #992F2C #2C992F
tetradic
#2F2C99 #992C5F #96992C #2C9965
square
#2F2C99 #992C5F #96992C #2C9965
split-complementary
#2F2C99 #99652C #5F992C
monochromatic
#12113A #201E69 #2F2C99 #3F3BC7 #6E6BD4

Accessibility & contrast

On white

10.82
#2F2C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F2C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C99
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C99#FFFFFF#000000##FFFFFF
##2F2C991.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f2c99;
/* rgb */ color: rgb(47, 44, 153);
/* oklch */ color: oklch(37.7% 0.171 275.6);
Tailwind
colors: {
  custom: {
    50: '#7766b8',
    500: '#2f2c99',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c99;
$custom-light: #7766b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c99",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 241.651,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37661,
    "c": 0.17081,
    "h": 275.6
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#2F2C99
secondary
#B9BB66
accent
#DF49DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2C99

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

Preview Lab → · Contrast checker → · Palette generator →

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