#2F218F#2F218F

#2F218F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.170 H 278.7°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2F218F
RGBrgb(47, 33, 143)
HSLhsl(248, 63%, 35%)
HSVhsv(248, 77%, 56%)
CMYKcmyk(67.1%, 76.9%, 0%, 43.9%)
CIE-LABlab(22.57, 40.03, -58.12)
CIE-LCHlch(22.57, 70.58, 304.56°)
OKLaboklab(35% 0.0258 -0.1678)
OKLCHoklch(35% 0.17 278.7)
XYZxyz(6.6725, 3.6747, 26.3389)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F218F #818F21
analogous
#214A8F #2F218F #66218F
triadic
#2F218F #8F2F21 #218F2F
tetradic
#2F218F #8F214A #818F21 #218F66
square
#2F218F #8F214A #818F21 #218F66
split-complementary
#2F218F #8F6621 #4A8F21
monochromatic
#0E0A2C #1F165D #2F218F #3F2CC1 #6453D7

Accessibility & contrast

On white

12.10
#2F218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F218F
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F218F#FFFFFF#000000##FFFFFF
##2F218F1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f218f;
/* rgb */ color: rgb(47, 33, 143);
/* oklch */ color: oklch(35.0% 0.170 278.7);
Tailwind
colors: {
  custom: {
    50: '#765fb1',
    500: '#2f218f',
    950: '#000000',
  },
}
SCSS
$custom: #2f218f;
$custom-light: #765fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f218f",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 247.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34998,
    "c": 0.16982,
    "h": 278.7
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#2F218F
secondary
#ADBB51
accent
#E642D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F218F

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

Preview Lab → · Contrast checker → · Palette generator →

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