#2F2299#2F2299

#2F2299 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.181 H 277.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2F2299
RGBrgb(47, 34, 153)
HSLhsl(247, 64%, 37%)
HSVhsv(247, 78%, 60%)
CMYKcmyk(69.3%, 77.8%, 0%, 40%)
CIE-LABlab(23.83, 42.71, -62.22)
CIE-LCHlch(23.83, 75.47, 304.47°)
OKLaboklab(36.21% 0.0227 -0.1798)
OKLCHoklch(36.21% 0.181 277.2)
XYZxyz(7.4922, 4.0476, 30.5173)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2299 #8C9922
analogous
#225199 #2F2299 #6B2299
triadic
#2F2299 #992F22 #22992F
tetradic
#2F2299 #992251 #8C9922 #22996B
square
#2F2299 #992251 #8C9922 #22996B
split-complementary
#2F2299 #996B22 #519922
monochromatic
#100C35 #201767 #2F2299 #3E2DCB #695BDB

Accessibility & contrast

On white

11.60
#2F2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2299
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2299#FFFFFF#000000##FFFFFF
##2F22991.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2299;
/* rgb */ color: rgb(47, 34, 153);
/* oklch */ color: oklch(36.2% 0.181 277.2);
Tailwind
colors: {
  custom: {
    50: '#7860b8',
    500: '#2f2299',
    950: '#000000',
  },
}
SCSS
$custom: #2f2299;
$custom-light: #7860b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2299",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 246.555,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36206,
    "c": 0.18121,
    "h": 277.2
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#2F2299
secondary
#B4BF58
accent
#E741D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F2299

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

Preview Lab → · Contrast checker → · Palette generator →

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