#2F20A3#2F20A3

#2F20A3 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.195 H 276.2°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2F20A3
RGBrgb(47, 32, 163)
HSLhsl(247, 67%, 38%)
HSVhsv(247, 80%, 64%)
CMYKcmyk(71.2%, 80.4%, 0%, 36.1%)
CIE-LABlab(24.58, 46.90, -67.08)
CIE-LCHlch(24.58, 81.85, 304.96°)
OKLaboklab(37.06% 0.0211 -0.1939)
OKLCHoklch(37.06% 0.195 276.2)
XYZxyz(8.2975, 4.2809, 35.0323)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F20A3 #94A320
analogous
#2052A3 #2F20A3 #7020A3
triadic
#2F20A3 #A32F20 #20A32F
tetradic
#2F20A3 #A32052 #94A320 #20A370
square
#2F20A3 #A32052 #94A320 #20A370
split-complementary
#2F20A3 #A37020 #52A320
monochromatic
#110C3D #201670 #2F20A3 #3E2BD5 #6D5EDF

Accessibility & contrast

On white

11.31
#2F20A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F20A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F20A3
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F20A3#FFFFFF#000000##FFFFFF
##2F20A31.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A7
Deuteranopia (green-blind)
#0035A1
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f20a3;
/* rgb */ color: rgb(47, 32, 163);
/* oklch */ color: oklch(37.1% 0.195 276.2);
Tailwind
colors: {
  custom: {
    50: '#7a5fc0',
    500: '#2f20a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f20a3;
$custom-light: #7a5fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f20a3",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 163
  },
  "hsl": {
    "h": 246.87,
    "s": 67.179,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37058,
    "c": 0.19506,
    "h": 276.2
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#2F20A3
secondary
#B8C45B
accent
#EA3ED6
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F20A3

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

Preview Lab → · Contrast checker → · Palette generator →

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