#2F22AB#2F22AB

#2F22AB is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.2% C 0.203 H 275.1°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2F22AB
RGBrgb(47, 34, 171)
HSLhsl(246, 67%, 40%)
HSVhsv(246, 80%, 67%)
CMYKcmyk(72.5%, 80.1%, 0%, 32.9%)
CIE-LABlab(25.83, 48.39, -69.86)
CIE-LCHlch(25.83, 84.98, 304.71°)
OKLaboklab(38.19% 0.0182 -0.202)
OKLCHoklch(38.19% 0.203 275.1)
XYZxyz(9.0926, 4.6878, 38.9458)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22AB #9EAB22
analogous
#225AAB #2F22AB #7322AB
triadic
#2F22AB #AB2F22 #22AB2F
tetradic
#2F22AB #AB225A #9EAB22 #22AB73
square
#2F22AB #AB225A #9EAB22 #22AB73
split-complementary
#2F22AB #AB7322 #5AAB22
monochromatic
#130E45 #211878 #2F22AB #4334D7 #7267E1

Accessibility & contrast

On white

10.84
#2F22AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F22AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22AB
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22AB#FFFFFF#000000##FFFFFF
##2F22AB1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AF
Deuteranopia (green-blind)
#0037A9
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f22ab;
/* rgb */ color: rgb(47, 34, 171);
/* oklch */ color: oklch(38.2% 0.203 275.1);
Tailwind
colors: {
  custom: {
    50: '#7c61c5',
    500: '#2f22ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f22ab;
$custom-light: #7c61c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22ab",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 171
  },
  "hsl": {
    "h": 245.693,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38191,
    "c": 0.2028,
    "h": 275.1
  },
  "luminance": 0.04689
}

Semantic roles & 50–950 ramp

primary
#2F22AB
secondary
#BDC663
accent
#EA3ED9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F22AB

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

Preview Lab → · Contrast checker → · Palette generator →

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