#2F2295#2F2295

#2F2295 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.176 H 277.7°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#2F2295
RGBrgb(47, 34, 149)
HSLhsl(247, 63%, 36%)
HSVhsv(247, 77%, 58%)
CMYKcmyk(68.5%, 77.2%, 0%, 41.6%)
CIE-LABlab(23.40, 41.42, -60.47)
CIE-LCHlch(23.40, 73.29, 304.41°)
OKLaboklab(35.78% 0.0237 -0.1747)
OKLCHoklch(35.78% 0.176 277.7)
XYZxyz(7.1674, 3.9177, 28.8064)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2295 #889522
analogous
#224E95 #2F2295 #682295
triadic
#2F2295 #952F22 #22952F
tetradic
#2F2295 #95224E #889522 #229568
square
#2F2295 #95224E #889522 #229568
split-complementary
#2F2295 #956822 #4E9522
monochromatic
#100B31 #1F1763 #2F2295 #3F2DC7 #6758D9

Accessibility & contrast

On white

11.77
#2F2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2295
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2295#FFFFFF#000000##FFFFFF
##2F22951.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2295;
/* rgb */ color: rgb(47, 34, 149);
/* oklch */ color: oklch(35.8% 0.176 277.7);
Tailwind
colors: {
  custom: {
    50: '#7760b5',
    500: '#2f2295',
    950: '#000000',
  },
}
SCSS
$custom: #2f2295;
$custom-light: #7760b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2295",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 246.783,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35775,
    "c": 0.17628,
    "h": 277.7
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#2F2295
secondary
#B1BD56
accent
#E642D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2295

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

Preview Lab → · Contrast checker → · Palette generator →

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