#2F22AC#2F22AC

#2F22AC is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.204 H 275.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2F22AC
RGBrgb(47, 34, 172)
HSLhsl(246, 67%, 40%)
HSVhsv(246, 80%, 67%)
CMYKcmyk(72.7%, 80.2%, 0%, 32.5%)
CIE-LABlab(25.94, 48.70, -70.27)
CIE-LCHlch(25.94, 85.50, 304.72°)
OKLaboklab(38.3% 0.0179 -0.2032)
OKLCHoklch(38.3% 0.204 275)
XYZxyz(9.1883, 4.7260, 39.4497)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22AC #9FAC22
analogous
#225AAC #2F22AC #7422AC
triadic
#2F22AC #AC2F22 #22AC2F
tetradic
#2F22AC #AC225A #9FAC22 #22AC74
square
#2F22AC #AC225A #9FAC22 #22AC74
split-complementary
#2F22AC #AC7422 #5AAC22
monochromatic
#130E46 #211879 #2F22AC #4434D7 #7367E1

Accessibility & contrast

On white

10.79
#2F22AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F22AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22AC
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22AC#FFFFFF#000000##FFFFFF
##2F22AC1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B0
Deuteranopia (green-blind)
#0037AA
Tritanopia (blue-blind)
#004D67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f22ac;
/* rgb */ color: rgb(47, 34, 172);
/* oklch */ color: oklch(38.3% 0.204 275.0);
Tailwind
colors: {
  custom: {
    50: '#7c61c6',
    500: '#2f22ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f22ac;
$custom-light: #7c61c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22ac",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 245.652,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38303,
    "c": 0.20399,
    "h": 275
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

primary
#2F22AC
secondary
#BDC763
accent
#EA3EDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F22AC

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

Preview Lab → · Contrast checker → · Palette generator →

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