#2F217F#2F217F

#2F217F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.149 H 281.4°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2F217F
RGBrgb(47, 33, 127)
HSLhsl(249, 59%, 31%)
HSVhsv(249, 74%, 50%)
CMYKcmyk(63%, 74%, 0%, 50.2%)
CIE-LABlab(20.92, 34.79, -50.80)
CIE-LCHlch(20.92, 61.57, 304.41°)
OKLaboklab(33.34% 0.0295 -0.1464)
OKLCHoklch(33.34% 0.149 281.4)
XYZxyz(5.5457, 3.2240, 20.4046)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F217F #717F21
analogous
#21427F #2F217F #5E217F
triadic
#2F217F #7F2F21 #217F2F
tetradic
#2F217F #7F2142 #717F21 #217F5E
square
#2F217F #7F2142 #717F21 #217F5E
split-complementary
#2F217F #7F5E21 #427F21
monochromatic
#0B081E #1D144E #2F217F #412EB0 #5E4AD0

Accessibility & contrast

On white

12.77
#2F217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F217F
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F217F#FFFFFF#000000##FFFFFF
##2F217F1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f217f;
/* rgb */ color: rgb(47, 33, 127);
/* oklch */ color: oklch(33.3% 0.149 281.4);
Tailwind
colors: {
  custom: {
    50: '#725ea5',
    500: '#2f217f',
    950: '#000000',
  },
}
SCSS
$custom: #2f217f;
$custom-light: #725ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f217f",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 248.936,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33337,
    "c": 0.14937,
    "h": 281.4
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#2F217F
secondary
#A2B24A
accent
#E246CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F217F

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

Preview Lab → · Contrast checker → · Palette generator →

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