#2F22A1#2F22A1

#2F22A1 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.191 H 276.2°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2F22A1
RGBrgb(47, 34, 161)
HSLhsl(246, 65%, 38%)
HSVhsv(246, 79%, 63%)
CMYKcmyk(70.8%, 78.9%, 0%, 36.9%)
CIE-LABlab(24.70, 45.26, -65.66)
CIE-LCHlch(24.70, 79.75, 304.58°)
OKLaboklab(37.08% 0.0207 -0.1898)
OKLCHoklch(37.08% 0.191 276.2)
XYZxyz(8.1752, 4.3208, 34.1145)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22A1 #94A122
analogous
#2254A1 #2F22A1 #6E22A1
triadic
#2F22A1 #A12F22 #22A12F
tetradic
#2F22A1 #A12254 #94A122 #22A16E
square
#2F22A1 #A12254 #94A122 #22A16E
split-complementary
#2F22A1 #A16E22 #54A122
monochromatic
#110D3C #20176E #2F22A1 #3E2DD3 #6D60DD

Accessibility & contrast

On white

11.26
#2F22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22A1
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22A1#FFFFFF#000000##FFFFFF
##2F22A11.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f22a1;
/* rgb */ color: rgb(47, 34, 161);
/* oklch */ color: oklch(37.1% 0.191 276.2);
Tailwind
colors: {
  custom: {
    50: '#7960be',
    500: '#2f22a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f22a1;
$custom-light: #7960be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22a1",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 246.142,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3708,
    "c": 0.19092,
    "h": 276.2
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#2F22A1
secondary
#B8C25D
accent
#E840D7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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