#2F20A8#2F20A8

#2F20A8 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.6% C 0.201 H 275.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2F20A8
RGBrgb(47, 32, 168)
HSLhsl(247, 68%, 39%)
HSVhsv(247, 81%, 66%)
CMYKcmyk(72%, 81%, 0%, 34.1%)
CIE-LABlab(25.15, 48.44, -69.17)
CIE-LCHlch(25.15, 84.44, 305.00°)
OKLaboklab(37.62% 0.0198 -0.2)
OKLCHoklch(37.62% 0.201 275.6)
XYZxyz(8.7544, 4.4637, 37.4384)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F20A8 #99A820
analogous
#2055A8 #2F20A8 #7320A8
triadic
#2F20A8 #A82F20 #20A82F
tetradic
#2F20A8 #A82055 #99A820 #20A873
square
#2F20A8 #A82055 #99A820 #20A873
split-complementary
#2F20A8 #A87320 #55A820
monochromatic
#120C41 #211675 #2F20A8 #412ED7 #6F61E1

Accessibility & contrast

On white

11.09
#2F20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F20A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F20A8
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F20A8#FFFFFF#000000##FFFFFF
##2F20A81.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f20a8;
/* rgb */ color: rgb(47, 32, 168);
/* oklch */ color: oklch(37.6% 0.201 275.6);
Tailwind
colors: {
  custom: {
    50: '#7b60c3',
    500: '#2f20a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f20a8;
$custom-light: #7b60c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f20a8",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 246.618,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3762,
    "c": 0.20094,
    "h": 275.6
  },
  "luminance": 0.04465
}

Semantic roles & 50–950 ramp

primary
#2F20A8
secondary
#BAC65E
accent
#EB3DD8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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