#2F22A4#2F22A4

#2F22A4 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.195 H 275.9°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2F22A4
RGBrgb(47, 34, 164)
HSLhsl(246, 66%, 39%)
HSVhsv(246, 79%, 64%)
CMYKcmyk(71.3%, 79.3%, 0%, 35.7%)
CIE-LABlab(25.04, 46.21, -66.93)
CIE-LCHlch(25.04, 81.33, 304.62°)
OKLaboklab(37.41% 0.02 -0.1935)
OKLCHoklch(37.41% 0.195 275.9)
XYZxyz(8.4430, 4.4279, 35.5245)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22A4 #97A422
analogous
#2256A4 #2F22A4 #7022A4
triadic
#2F22A4 #A42F22 #22A42F
tetradic
#2F22A4 #A42256 #97A422 #22A470
square
#2F22A4 #A42256 #97A422 #22A470
split-complementary
#2F22A4 #A47022 #56A422
monochromatic
#120D3F #201771 #2F22A4 #402FD4 #6E62DE

Accessibility & contrast

On white

11.14
#2F22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22A4
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22A4#FFFFFF#000000##FFFFFF
##2F22A41.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f22a4;
/* rgb */ color: rgb(47, 34, 164);
/* oklch */ color: oklch(37.4% 0.195 275.9);
Tailwind
colors: {
  custom: {
    50: '#7a60c0',
    500: '#2f22a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f22a4;
$custom-light: #7a60c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22a4",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 246,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37411,
    "c": 0.19452,
    "h": 275.9
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#2F22A4
secondary
#B9C45E
accent
#E93FD8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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