#2F2EC9#2F2EC9

#2F2EC9 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.0% C 0.228 H 271.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2F2EC9
RGBrgb(47, 46, 201)
HSLhsl(240, 63%, 48%)
HSVhsv(240, 77%, 79%)
CMYKcmyk(76.6%, 77.1%, 0%, 21.2%)
CIE-LABlab(31.29, 51.72, -78.60)
CIE-LCHlch(31.29, 94.09, 303.34°)
OKLaboklab(42.99% 0.0069 -0.2275)
OKLCHoklch(42.99% 0.228 271.7)
XYZxyz(12.6883, 6.7740, 55.8858)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EC9 #C8C92E
analogous
#2E7AC9 #2F2EC9 #7C2EC9
triadic
#2F2EC9 #C92F2E #2EC92F
tetradic
#2F2EC9 #C92E7A #C8C92E #2EC97C
square
#2F2EC9 #C92E7A #C8C92E #2EC97C
split-complementary
#2F2EC9 #C97C2E #7AC92E
monochromatic
#181765 #232397 #2F2EC9 #5C5BD9 #8D8DE5

Accessibility & contrast

On white

8.92
#2F2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F2EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EC9
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EC9#FFFFFF#000000##FFFFFF
##2F2EC91.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CD
Deuteranopia (green-blind)
#0042C6
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f2ec9;
/* rgb */ color: rgb(47, 46, 201);
/* oklch */ color: oklch(43.0% 0.228 271.7);
Tailwind
colors: {
  custom: {
    50: '#826adb',
    500: '#2f2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ec9;
$custom-light: #826adb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ec9",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 240.387,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4299,
    "c": 0.22765,
    "h": 271.7
  },
  "luminance": 0.06775
}

Semantic roles & 50–950 ramp

primary
#2F2EC9
secondary
#CFCF84
accent
#E642E5
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #2F2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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