#2F2199#2F2199

#2F2199 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.182 H 277.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2F2199
RGBrgb(47, 33, 153)
HSLhsl(247, 65%, 36%)
HSVhsv(247, 78%, 60%)
CMYKcmyk(69.3%, 78.4%, 0%, 40%)
CIE-LABlab(23.64, 43.24, -62.52)
CIE-LCHlch(23.64, 76.02, 304.67°)
OKLaboklab(36.08% 0.0233 -0.1807)
OKLCHoklch(36.08% 0.182 277.3)
XYZxyz(7.4640, 3.9913, 30.5079)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2199 #8B9921
analogous
#214F99 #2F2199 #6B2199
triadic
#2F2199 #992F21 #21992F
tetradic
#2F2199 #99214F #8B9921 #21996B
square
#2F2199 #99214F #8B9921 #21996B
split-complementary
#2F2199 #996B21 #4F9921
monochromatic
#100B34 #201667 #2F2199 #3E2CCB #6859DB

Accessibility & contrast

On white

11.68
#2F2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2199
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2199#FFFFFF#000000##FFFFFF
##2F21991.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2199;
/* rgb */ color: rgb(47, 33, 153);
/* oklch */ color: oklch(36.1% 0.182 277.3);
Tailwind
colors: {
  custom: {
    50: '#785fb8',
    500: '#2f2199',
    950: '#000000',
  },
}
SCSS
$custom: #2f2199;
$custom-light: #785fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2199",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 247,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36076,
    "c": 0.18215,
    "h": 277.3
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#2F2199
secondary
#B3BF56
accent
#E840D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F2199

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

Preview Lab → · Contrast checker → · Palette generator →

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