#2F2EC8#2F2EC8

#2F2EC8 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.9% C 0.226 H 271.8°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#2F2EC8
RGBrgb(47, 46, 200)
HSLhsl(240, 63%, 48%)
HSVhsv(240, 77%, 78%)
CMYKcmyk(76.5%, 77%, 0%, 21.6%)
CIE-LABlab(31.18, 51.40, -78.20)
CIE-LCHlch(31.18, 93.58, 303.32°)
OKLaboklab(42.88% 0.0071 -0.2264)
OKLCHoklch(42.88% 0.226 271.8)
XYZxyz(12.5711, 6.7271, 55.2683)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EC8 #C7C82E
analogous
#2E7AC8 #2F2EC8 #7C2EC8
triadic
#2F2EC8 #C82F2E #2EC82F
tetradic
#2F2EC8 #C82E7A #C7C82E #2EC87C
square
#2F2EC8 #C82E7A #C7C82E #2EC87C
split-complementary
#2F2EC8 #C87C2E #7AC82E
monochromatic
#181764 #232396 #2F2EC8 #5B5AD9 #8C8CE5

Accessibility & contrast

On white

8.95
#2F2EC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F2EC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EC8
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EC8#FFFFFF#000000##FFFFFF
##2F2EC81.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CC
Deuteranopia (green-blind)
#0042C5
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f2ec8;
/* rgb */ color: rgb(47, 46, 200);
/* oklch */ color: oklch(42.9% 0.226 271.8);
Tailwind
colors: {
  custom: {
    50: '#826ada',
    500: '#2f2ec8',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ec8;
$custom-light: #826ada;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ec8",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 200
  },
  "hsl": {
    "h": 240.39,
    "s": 62.602,
    "l": 48.235
  },
  "oklch": {
    "l": 0.42881,
    "c": 0.22648,
    "h": 271.8
  },
  "luminance": 0.06728
}

Semantic roles & 50–950 ramp

primary
#2F2EC8
secondary
#CECF83
accent
#E642E5
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2F2EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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