#2F22A2#2F22A2

#2F22A2 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.192 H 276.1°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2F22A2
RGBrgb(47, 34, 162)
HSLhsl(246, 65%, 38%)
HSVhsv(246, 79%, 64%)
CMYKcmyk(71%, 79%, 0%, 36.5%)
CIE-LABlab(24.82, 45.57, -66.08)
CIE-LCHlch(24.82, 80.27, 304.59°)
OKLaboklab(37.19% 0.0205 -0.191)
OKLCHoklch(37.19% 0.192 276.1)
XYZxyz(8.2638, 4.3563, 34.5808)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22A2 #95A222
analogous
#2255A2 #2F22A2 #6F22A2
triadic
#2F22A2 #A22F22 #22A22F
tetradic
#2F22A2 #A22255 #95A222 #22A26F
square
#2F22A2 #A22255 #95A222 #22A26F
split-complementary
#2F22A2 #A26F22 #55A222
monochromatic
#120D3D #20176F #2F22A2 #3F2ED3 #6D61DE

Accessibility & contrast

On white

11.22
#2F22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22A2
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22A2#FFFFFF#000000##FFFFFF
##2F22A21.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0035A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f22a2;
/* rgb */ color: rgb(47, 34, 162);
/* oklch */ color: oklch(37.2% 0.192 276.1);
Tailwind
colors: {
  custom: {
    50: '#7a60bf',
    500: '#2f22a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f22a2;
$custom-light: #7a60bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22a2",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 246.094,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3719,
    "c": 0.19212,
    "h": 276.1
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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