#2F219D#2F219D

#2F219D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.187 H 276.8°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2F219D
RGBrgb(47, 33, 157)
HSLhsl(247, 65%, 37%)
HSVhsv(247, 79%, 62%)
CMYKcmyk(70.1%, 79%, 0%, 38.4%)
CIE-LABlab(24.08, 44.51, -64.25)
CIE-LCHlch(24.08, 78.16, 304.71°)
OKLaboklab(36.51% 0.0222 -0.1857)
OKLCHoklch(36.51% 0.187 276.8)
XYZxyz(7.8000, 4.1257, 32.2770)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F219D #8F9D21
analogous
#21519D #2F219D #6D219D
triadic
#2F219D #9D2F21 #219D2F
tetradic
#2F219D #9D2151 #8F9D21 #219D6D
square
#2F219D #9D2151 #8F9D21 #219D6D
split-complementary
#2F219D #9D6D21 #519D21
monochromatic
#110C38 #20166A #2F219D #3E2CD0 #6A5CDD

Accessibility & contrast

On white

11.51
#2F219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F219D
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F219D#FFFFFF#000000##FFFFFF
##2F219D1.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f219d;
/* rgb */ color: rgb(47, 33, 157);
/* oklch */ color: oklch(36.5% 0.187 276.8);
Tailwind
colors: {
  custom: {
    50: '#7960bb',
    500: '#2f219d',
    950: '#000000',
  },
}
SCSS
$custom: #2f219d;
$custom-light: #7960bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f219d",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 246.774,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36514,
    "c": 0.18701,
    "h": 276.8
  },
  "luminance": 0.04126
}

Semantic roles & 50–950 ramp

primary
#2F219D
secondary
#B5C159
accent
#E840D5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F219D

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

Preview Lab → · Contrast checker → · Palette generator →

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