#2F2C95#2F2C95

#2F2C95 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.166 H 276.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2F2C95
RGBrgb(47, 44, 149)
HSLhsl(242, 54%, 38%)
HSVhsv(242, 70%, 58%)
CMYKcmyk(68.5%, 70.5%, 0%, 41.6%)
CIE-LABlab(25.49, 35.59, -57.02)
CIE-LCHlch(25.49, 67.22, 301.97°)
OKLaboklab(37.26% 0.0173 -0.1647)
OKLCHoklch(37.26% 0.166 276)
XYZxyz(7.4960, 4.5750, 28.9160)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C95 #92952C
analogous
#2C5E95 #2F2C95 #632C95
triadic
#2F2C95 #952F2C #2C952F
tetradic
#2F2C95 #952C5E #92952C #2C9563
square
#2F2C95 #952C5E #92952C #2C9563
split-complementary
#2F2C95 #95632C #5E952C
monochromatic
#111037 #201E66 #2F2C95 #3E3AC4 #6C69D3

Accessibility & contrast

On white

10.96
#2F2C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F2C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C95
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C95#FFFFFF#000000##FFFFFF
##2F2C951.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2c95;
/* rgb */ color: rgb(47, 44, 149);
/* oklch */ color: oklch(37.3% 0.166 276.0);
Tailwind
colors: {
  custom: {
    50: '#7666b5',
    500: '#2f2c95',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c95;
$custom-light: #7666b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c95",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 241.714,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37263,
    "c": 0.1656,
    "h": 276
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

primary
#2F2C95
secondary
#B7B964
accent
#DE4ADA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2C95

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

Preview Lab → · Contrast checker → · Palette generator →

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