#2F22B1#2F22B1

#2F22B1 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.210 H 274.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2F22B1
RGBrgb(47, 34, 177)
HSLhsl(245, 68%, 41%)
HSVhsv(245, 81%, 69%)
CMYKcmyk(73.4%, 80.8%, 0%, 30.6%)
CIE-LABlab(26.51, 50.24, -72.32)
CIE-LCHlch(26.51, 88.06, 304.79°)
OKLaboklab(38.87% 0.0166 -0.2092)
OKLCHoklch(38.87% 0.21 274.5)
XYZxyz(9.6775, 4.9217, 42.0264)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22B1 #A4B122
analogous
#225CB1 #2F22B1 #7722B1
triadic
#2F22B1 #B12F22 #22B12F
tetradic
#2F22B1 #B1225C #A4B122 #22B177
square
#2F22B1 #B1225C #A4B122 #22B177
split-complementary
#2F22B1 #B17722 #5CB122
monochromatic
#140E4A #21187E #2F22B1 #4638D9 #766BE3

Accessibility & contrast

On white

10.58
#2F22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F22B1
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22B1#FFFFFF#000000##FFFFFF
##2F22B11.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B5
Deuteranopia (green-blind)
#0038AF
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f22b1;
/* rgb */ color: rgb(47, 34, 177);
/* oklch */ color: oklch(38.9% 0.210 274.5);
Tailwind
colors: {
  custom: {
    50: '#7d61ca',
    500: '#2f22b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f22b1;
$custom-light: #7d61ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22b1",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 245.455,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38867,
    "c": 0.20982,
    "h": 274.5
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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