#2F20A5#2F20A5

#2F20A5 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.197 H 276.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2F20A5
RGBrgb(47, 32, 165)
HSLhsl(247, 68%, 39%)
HSVhsv(247, 81%, 65%)
CMYKcmyk(71.5%, 80.6%, 0%, 35.3%)
CIE-LABlab(24.81, 47.51, -67.92)
CIE-LCHlch(24.81, 82.89, 304.98°)
OKLaboklab(37.28% 0.0206 -0.1963)
OKLCHoklch(37.28% 0.197 276)
XYZxyz(8.4781, 4.3532, 35.9835)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F20A5 #96A520
analogous
#2053A5 #2F20A5 #7120A5
triadic
#2F20A5 #A52F20 #20A52F
tetradic
#2F20A5 #A52053 #96A520 #20A571
square
#2F20A5 #A52053 #96A520 #20A571
split-complementary
#2F20A5 #A57120 #53A520
monochromatic
#120C3E #201672 #2F20A5 #3F2CD6 #6E5FE0

Accessibility & contrast

On white

11.23
#2F20A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F20A5
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F20A5#FFFFFF#000000##FFFFFF
##2F20A51.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f20a5;
/* rgb */ color: rgb(47, 32, 165);
/* oklch */ color: oklch(37.3% 0.197 276.0);
Tailwind
colors: {
  custom: {
    50: '#7b5fc1',
    500: '#2f20a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f20a5;
$custom-light: #7b5fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f20a5",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 246.767,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37282,
    "c": 0.19741,
    "h": 276
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

primary
#2F20A5
secondary
#B9C55C
accent
#EA3DD7
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F20A5

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

Preview Lab → · Contrast checker → · Palette generator →

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