#2F219E#2F219E

#2F219E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.188 H 276.7°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2F219E
RGBrgb(47, 33, 158)
HSLhsl(247, 65%, 37%)
HSVhsv(247, 79%, 62%)
CMYKcmyk(70.3%, 79.1%, 0%, 38%)
CIE-LABlab(24.19, 44.83, -64.67)
CIE-LCHlch(24.19, 78.69, 304.73°)
OKLaboklab(36.62% 0.022 -0.1869)
OKLCHoklch(36.62% 0.188 276.7)
XYZxyz(7.8857, 4.1600, 32.7285)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F219E #909E21
analogous
#21529E #2F219E #6E219E
triadic
#2F219E #9E2F21 #219E2F
tetradic
#2F219E #9E2152 #909E21 #219E6E
square
#2F219E #9E2152 #909E21 #219E6E
split-complementary
#2F219E #9E6E21 #529E21
monochromatic
#110C39 #20166B #2F219E #3E2CD1 #6B5CDD

Accessibility & contrast

On white

11.46
#2F219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F219E
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F219E#FFFFFF#000000##FFFFFF
##2F219E1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f219e;
/* rgb */ color: rgb(47, 33, 158);
/* oklch */ color: oklch(36.6% 0.188 276.7);
Tailwind
colors: {
  custom: {
    50: '#7960bc',
    500: '#2f219e',
    950: '#000000',
  },
}
SCSS
$custom: #2f219e;
$custom-light: #7960bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f219e",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 246.72,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36624,
    "c": 0.18821,
    "h": 276.7
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

primary
#2F219E
secondary
#B6C159
accent
#E83FD5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F219E

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

Preview Lab → · Contrast checker → · Palette generator →

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