#2F22B0#2F22B0

#2F22B0 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.8% C 0.209 H 274.6°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2F22B0
RGBrgb(47, 34, 176)
HSLhsl(245, 68%, 41%)
HSVhsv(245, 81%, 69%)
CMYKcmyk(73.3%, 80.7%, 0%, 31%)
CIE-LABlab(26.40, 49.94, -71.92)
CIE-LCHlch(26.40, 87.55, 304.77°)
OKLaboklab(38.75% 0.0169 -0.208)
OKLCHoklch(38.75% 0.209 274.6)
XYZxyz(9.5782, 4.8820, 41.5034)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F22B0 #A3B022
analogous
#225CB0 #2F22B0 #7622B0
triadic
#2F22B0 #B02F22 #22B02F
tetradic
#2F22B0 #B0225C #A3B022 #22B076
square
#2F22B0 #B0225C #A3B022 #22B076
split-complementary
#2F22B0 #B07622 #5CB022
monochromatic
#140E49 #21187D #2F22B0 #4637D8 #756AE2

Accessibility & contrast

On white

10.62
#2F22B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F22B0
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F22B0#FFFFFF#000000##FFFFFF
##2F22B01.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B4
Deuteranopia (green-blind)
#0038AE
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f22b0;
/* rgb */ color: rgb(47, 34, 176);
/* oklch */ color: oklch(38.8% 0.209 274.6);
Tailwind
colors: {
  custom: {
    50: '#7d61c9',
    500: '#2f22b0',
    950: '#000000',
  },
}
SCSS
$custom: #2f22b0;
$custom-light: #7d61c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f22b0",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 176
  },
  "hsl": {
    "h": 245.493,
    "s": 67.619,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38754,
    "c": 0.20865,
    "h": 274.6
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#2F22B0
secondary
#BFC866
accent
#EA3DDB
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F22B0

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

Preview Lab → · Contrast checker → · Palette generator →

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