#2F22A6#2F22A6

#2F22A6 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.6% C 0.197 H 275.7°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2F22A6
RGBrgb(47, 34, 166)
HSLhsl(246, 66%, 39%)
HSVhsv(246, 80%, 65%)
CMYKcmyk(71.7%, 79.5%, 0%, 34.9%)
CIE-LABlab(25.26, 46.83, -67.77)
CIE-LCHlch(25.26, 82.38, 304.65°)
OKLaboklab(37.63% 0.0194 -0.1959)
OKLCHoklch(37.63% 0.197 275.7)
XYZxyz(8.6250, 4.5007, 36.4832)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22A6 #99A622
analogous
#2257A6 #2F22A6 #7122A6
triadic
#2F22A6 #A62F22 #22A62F
tetradic
#2F22A6 #A62257 #99A622 #22A671
square
#2F22A6 #A62257 #99A622 #22A671
split-complementary
#2F22A6 #A67122 #57A622
monochromatic
#120D40 #211873 #2F22A6 #4130D5 #6F63DF

Accessibility & contrast

On white

11.05
#2F22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22A6
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22A6#FFFFFF#000000##FFFFFF
##2F22A61.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f22a6;
/* rgb */ color: rgb(47, 34, 166);
/* oklch */ color: oklch(37.6% 0.197 275.7);
Tailwind
colors: {
  custom: {
    50: '#7b61c2',
    500: '#2f22a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f22a6;
$custom-light: #7b61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22a6",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 245.909,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37633,
    "c": 0.1969,
    "h": 275.7
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#2F22A6
secondary
#BAC45F
accent
#E93FD8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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