#2F22B3#2F22B3

#2F22B3 is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.1% C 0.212 H 274.3°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2F22B3
RGBrgb(47, 34, 179)
HSLhsl(245, 68%, 42%)
HSVhsv(245, 81%, 70%)
CMYKcmyk(73.7%, 81%, 0%, 29.8%)
CIE-LABlab(26.74, 50.85, -73.14)
CIE-LCHlch(26.74, 89.08, 304.81°)
OKLaboklab(39.09% 0.0161 -0.2115)
OKLCHoklch(39.09% 0.212 274.3)
XYZxyz(9.8783, 5.0021, 43.0840)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22B3 #A6B322
analogous
#225EB3 #2F22B3 #7822B3
triadic
#2F22B3 #B32F22 #22B32F
tetradic
#2F22B3 #B3225E #A6B322 #22B378
square
#2F22B3 #B3225E #A6B322 #22B378
split-complementary
#2F22B3 #B37822 #5EB322
monochromatic
#140E4C #211880 #2F22B3 #4739D9 #776CE3

Accessibility & contrast

On white

10.50
#2F22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F22B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22B3
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22B3#FFFFFF#000000##FFFFFF
##2F22B31.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B7
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f22b3;
/* rgb */ color: rgb(47, 34, 179);
/* oklch */ color: oklch(39.1% 0.212 274.3);
Tailwind
colors: {
  custom: {
    50: '#7e61cb',
    500: '#2f22b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f22b3;
$custom-light: #7e61cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22b3",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 245.379,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39093,
    "c": 0.21213,
    "h": 274.3
  },
  "luminance": 0.05003
}

Semantic roles & 50–950 ramp

primary
#2F22B3
secondary
#C1C968
accent
#EB3DDB
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #2F22B3

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

Preview Lab → · Contrast checker → · Palette generator →

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