#2F22C2#2F22C2

#2F22C2 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.8% C 0.229 H 273.1°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2F22C2
RGBrgb(47, 34, 194)
HSLhsl(245, 70%, 45%)
HSVhsv(245, 82%, 76%)
CMYKcmyk(75.8%, 82.5%, 0%, 23.9%)
CIE-LABlab(28.49, 55.37, -79.13)
CIE-LCHlch(28.49, 96.58, 304.98°)
OKLaboklab(40.81% 0.0122 -0.2289)
OKLCHoklch(40.81% 0.229 273.1)
XYZxyz(11.4787, 5.6422, 51.5126)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22C2 #B5C222
analogous
#2265C2 #2F22C2 #7F22C2
triadic
#2F22C2 #C22F22 #22C22F
tetradic
#2F22C2 #C22265 #B5C222 #22C27F
square
#2F22C2 #C22265 #B5C222 #22C27F
split-complementary
#2F22C2 #C27F22 #65C222
monochromatic
#16105A #22198E #2F22C2 #5043DE #8077E7

Accessibility & contrast

On white

9.87
#2F22C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F22C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22C2
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22C2#FFFFFF#000000##FFFFFF
##2F22C21.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003BBF
Tritanopia (blue-blind)
#005674
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f22c2;
/* rgb */ color: rgb(47, 34, 194);
/* oklch */ color: oklch(40.8% 0.229 273.1);
Tailwind
colors: {
  custom: {
    50: '#8163d6',
    500: '#2f22c2',
    950: '#000000',
  },
}
SCSS
$custom: #2f22c2;
$custom-light: #8163d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22c2",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 194
  },
  "hsl": {
    "h": 244.875,
    "s": 70.175,
    "l": 44.706
  },
  "oklch": {
    "l": 0.40811,
    "c": 0.22922,
    "h": 273.1
  },
  "luminance": 0.05643
}

Semantic roles & 50–950 ramp

primary
#2F22C2
secondary
#C7CF71
accent
#ED3BDE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0515
muted
#7D7A83

Preview Lab

Preview with #2F22C2

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

Preview Lab → · Contrast checker → · Palette generator →

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