#2F2B97#2F2B97

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

Color values

HEX#2F2B97
RGBrgb(47, 43, 151)
HSLhsl(242, 56%, 38%)
HSVhsv(242, 72%, 59%)
CMYKcmyk(68.9%, 71.5%, 0%, 40.8%)
CIE-LABlab(25.46, 36.89, -58.30)
CIE-LCHlch(25.46, 68.99, 302.33°)
OKLaboklab(37.3% 0.0177 -0.1684)
OKLCHoklch(37.3% 0.169 276)
XYZxyz(7.6202, 4.5658, 29.7519)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2B97 #93972B
analogous
#2B5D97 #2F2B97 #652B97
triadic
#2F2B97 #972F2B #2B972F
tetradic
#2F2B97 #972B5D #93972B #2B9765
square
#2F2B97 #972B5D #93972B #2B9765
split-complementary
#2F2B97 #97652B #5D972B
monochromatic
#111038 #201D67 #2F2B97 #3E39C7 #6C68D4

Accessibility & contrast

On white

10.98
#2F2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2B97
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2B97#FFFFFF#000000##FFFFFF
##2F2B971.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2b97;
/* rgb */ color: rgb(47, 43, 151);
/* oklch */ color: oklch(37.3% 0.169 276.0);
Tailwind
colors: {
  custom: {
    50: '#7665b7',
    500: '#2f2b97',
    950: '#000000',
  },
}
SCSS
$custom: #2f2b97;
$custom-light: #7665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2b97",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 242.222,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37302,
    "c": 0.16933,
    "h": 276
  },
  "luminance": 0.04566
}

Semantic roles & 50–950 ramp

primary
#2F2B97
secondary
#B7BB63
accent
#DF49D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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