#2F20A1#2F20A1

#2F20A1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.193 H 276.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2F20A1
RGBrgb(47, 32, 161)
HSLhsl(247, 67%, 38%)
HSVhsv(247, 80%, 63%)
CMYKcmyk(70.8%, 80.1%, 0%, 36.9%)
CIE-LABlab(24.35, 46.27, -66.24)
CIE-LCHlch(24.35, 80.80, 304.94°)
OKLaboklab(36.83% 0.0217 -0.1915)
OKLCHoklch(36.83% 0.193 276.5)
XYZxyz(8.1197, 4.2098, 34.0960)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F20A1 #92A120
analogous
#2051A1 #2F20A1 #7020A1
triadic
#2F20A1 #A12F20 #20A12F
tetradic
#2F20A1 #A12051 #92A120 #20A170
square
#2F20A1 #A12051 #92A120 #20A170
split-complementary
#2F20A1 #A17020 #51A120
monochromatic
#110C3B #20166E #2F20A1 #3E2AD4 #6C5DDF

Accessibility & contrast

On white

11.40
#2F20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F20A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F20A1
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F20A1#FFFFFF#000000##FFFFFF
##2F20A11.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f20a1;
/* rgb */ color: rgb(47, 32, 161);
/* oklch */ color: oklch(36.8% 0.193 276.5);
Tailwind
colors: {
  custom: {
    50: '#7a5fbe',
    500: '#2f20a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f20a1;
$custom-light: #7a5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f20a1",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 246.977,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36834,
    "c": 0.19268,
    "h": 276.5
  },
  "luminance": 0.04211
}

Semantic roles & 50–950 ramp

primary
#2F20A1
secondary
#B7C35A
accent
#EA3ED6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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