#2F22C1#2F22C1

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

Color values

HEX#2F22C1
RGBrgb(47, 34, 193)
HSLhsl(245, 70%, 45%)
HSVhsv(245, 82%, 76%)
CMYKcmyk(75.6%, 82.4%, 0%, 24.3%)
CIE-LABlab(28.37, 55.08, -78.74)
CIE-LCHlch(28.37, 96.09, 304.97°)
OKLaboklab(40.7% 0.0125 -0.2277)
OKLCHoklch(40.7% 0.228 273.1)
XYZxyz(11.3667, 5.5974, 50.9231)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22C1 #B4C122
analogous
#2264C1 #2F22C1 #7F22C1
triadic
#2F22C1 #C12F22 #22C12F
tetradic
#2F22C1 #C12264 #B4C122 #22C17F
square
#2F22C1 #C12264 #B4C122 #22C17F
split-complementary
#2F22C1 #C17F22 #64C122
monochromatic
#161059 #22198D #2F22C1 #4F42DE #8076E7

Accessibility & contrast

On white

9.91
#2F22C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F22C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22C1
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22C1#FFFFFF#000000##FFFFFF
##2F22C11.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC5
Deuteranopia (green-blind)
#003BBE
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f22c1;
/* rgb */ color: rgb(47, 34, 193);
/* oklch */ color: oklch(40.7% 0.228 273.1);
Tailwind
colors: {
  custom: {
    50: '#8162d5',
    500: '#2f22c1',
    950: '#000000',
  },
}
SCSS
$custom: #2f22c1;
$custom-light: #8162d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22c1",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 193
  },
  "hsl": {
    "h": 244.906,
    "s": 70.044,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40696,
    "c": 0.22809,
    "h": 273.1
  },
  "luminance": 0.05599
}

Semantic roles & 50–950 ramp

primary
#2F22C1
secondary
#C7CE71
accent
#ED3BDE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2F22C1

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

Preview Lab → · Contrast checker → · Palette generator →

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