#2F22A5#2F22A5

#2F22A5 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.196 H 275.8°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2F22A5
RGBrgb(47, 34, 165)
HSLhsl(246, 66%, 39%)
HSVhsv(246, 79%, 65%)
CMYKcmyk(71.5%, 79.4%, 0%, 35.3%)
CIE-LABlab(25.15, 46.52, -67.35)
CIE-LCHlch(25.15, 81.85, 304.63°)
OKLaboklab(37.52% 0.0197 -0.1947)
OKLCHoklch(37.52% 0.196 275.8)
XYZxyz(8.5336, 4.4642, 36.0020)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22A5 #98A522
analogous
#2257A5 #2F22A5 #7122A5
triadic
#2F22A5 #A52F22 #22A52F
tetradic
#2F22A5 #A52257 #98A522 #22A571
square
#2F22A5 #A52257 #98A522 #22A571
split-complementary
#2F22A5 #A57122 #57A522
monochromatic
#120D40 #211872 #2F22A5 #4030D4 #6F63DF

Accessibility & contrast

On white

11.09
#2F22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F22A5
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22A5#FFFFFF#000000##FFFFFF
##2F22A51.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0036A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f22a5;
/* rgb */ color: rgb(47, 34, 165);
/* oklch */ color: oklch(37.5% 0.196 275.8);
Tailwind
colors: {
  custom: {
    50: '#7a61c1',
    500: '#2f22a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f22a5;
$custom-light: #7a61c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22a5",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 245.954,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37522,
    "c": 0.1957,
    "h": 275.8
  },
  "luminance": 0.04465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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