#2F218E#2F218E

#2F218E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.169 H 278.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2F218E
RGBrgb(47, 33, 142)
HSLhsl(248, 62%, 34%)
HSVhsv(248, 77%, 56%)
CMYKcmyk(66.9%, 76.8%, 0%, 44.3%)
CIE-LABlab(22.46, 39.71, -57.68)
CIE-LCHlch(22.46, 70.02, 304.55°)
OKLaboklab(34.89% 0.026 -0.1665)
OKLCHoklch(34.89% 0.169 278.9)
XYZxyz(6.5971, 3.6445, 25.9417)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F218E #808E21
analogous
#214A8E #2F218E #66218E
triadic
#2F218E #8E2F21 #218E2F
tetradic
#2F218E #8E214A #808E21 #218E66
square
#2F218E #8E214A #808E21 #218E66
split-complementary
#2F218E #8E6621 #4A8E21
monochromatic
#0E0A2B #1F155C #2F218E #3F2DC0 #6352D7

Accessibility & contrast

On white

12.15
#2F218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F218E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F218E#FFFFFF#000000##FFFFFF
##2F218E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f218e;
/* rgb */ color: rgb(47, 33, 142);
/* oklch */ color: oklch(34.9% 0.169 278.9);
Tailwind
colors: {
  custom: {
    50: '#755fb0',
    500: '#2f218e',
    950: '#000000',
  },
}
SCSS
$custom: #2f218e;
$custom-light: #755fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f218e",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 247.706,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34892,
    "c": 0.16856,
    "h": 278.9
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#2F218E
secondary
#ADBA50
accent
#E542D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F218E

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

Preview Lab → · Contrast checker → · Palette generator →

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