#2F22A3#2F22A3

#2F22A3 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.193 H 276.0°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2F22A3
RGBrgb(47, 34, 163)
HSLhsl(246, 65%, 39%)
HSVhsv(246, 79%, 64%)
CMYKcmyk(71.2%, 79.1%, 0%, 36.1%)
CIE-LABlab(24.93, 45.89, -66.51)
CIE-LCHlch(24.93, 80.80, 304.61°)
OKLaboklab(37.3% 0.0202 -0.1923)
OKLCHoklch(37.3% 0.193 276)
XYZxyz(8.3530, 4.3920, 35.0508)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22A3 #96A322
analogous
#2255A3 #2F22A3 #6F22A3
triadic
#2F22A3 #A32F22 #22A32F
tetradic
#2F22A3 #A32255 #96A322 #22A36F
square
#2F22A3 #A32255 #96A322 #22A36F
split-complementary
#2F22A3 #A36F22 #55A322
monochromatic
#120D3E #201770 #2F22A3 #3F2FD4 #6E61DE

Accessibility & contrast

On white

11.18
#2F22A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F22A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22A3
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22A3#FFFFFF#000000##FFFFFF
##2F22A31.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A7
Deuteranopia (green-blind)
#0035A1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f22a3;
/* rgb */ color: rgb(47, 34, 163);
/* oklch */ color: oklch(37.3% 0.193 276.0);
Tailwind
colors: {
  custom: {
    50: '#7a60c0',
    500: '#2f22a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f22a3;
$custom-light: #7a60c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22a3",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 246.047,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.373,
    "c": 0.19332,
    "h": 276
  },
  "luminance": 0.04393
}

Semantic roles & 50–950 ramp

primary
#2F22A3
secondary
#B9C35E
accent
#E83FD7
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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