#2F2AC8#2F2AC8

#2F2AC8 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.4% C 0.230 H 272.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#2F2AC8
RGBrgb(47, 42, 200)
HSLhsl(242, 65%, 47%)
HSVhsv(242, 79%, 78%)
CMYKcmyk(76.5%, 79%, 0%, 21.6%)
CIE-LABlab(30.47, 53.44, -79.37)
CIE-LCHlch(30.47, 95.68, 303.95°)
OKLaboklab(42.39% 0.0084 -0.2297)
OKLCHoklch(42.39% 0.23 272.1)
XYZxyz(12.4221, 6.4290, 55.2186)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AC8 #C3C82A
analogous
#2A74C8 #2F2AC8 #7E2AC8
triadic
#2F2AC8 #C82F2A #2AC82F
tetradic
#2F2AC8 #C82A74 #C3C82A #2AC87E
square
#2F2AC8 #C82A74 #C3C82A #2AC87E
split-complementary
#2F2AC8 #C87E2A #74C82A
monochromatic
#171563 #231F95 #2F2AC8 #5854DB #8A87E6

Accessibility & contrast

On white

9.19
#2F2AC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F2AC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AC8
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AC8#FFFFFF#000000##FFFFFF
##2F2AC81.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FCC
Deuteranopia (green-blind)
#0040C5
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f2ac8;
/* rgb */ color: rgb(47, 42, 200);
/* oklch */ color: oklch(42.4% 0.230 272.1);
Tailwind
colors: {
  custom: {
    50: '#8267da',
    500: '#2f2ac8',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ac8;
$custom-light: #8267da;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ac8",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 200
  },
  "hsl": {
    "h": 241.899,
    "s": 65.289,
    "l": 47.451
  },
  "oklch": {
    "l": 0.42385,
    "c": 0.22988,
    "h": 272.1
  },
  "luminance": 0.0643
}

Semantic roles & 50–950 ramp

primary
#2F2AC8
secondary
#CDCF7F
accent
#E840E3
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #2F2AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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