#2D1EC9#2D1EC9

#2D1EC9 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 41.1% C 0.240 H 272.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2D1EC9
RGBrgb(45, 30, 201)
HSLhsl(245, 74%, 45%)
HSVhsv(245, 85%, 79%)
CMYKcmyk(77.6%, 85.1%, 0%, 21.2%)
CIE-LABlab(28.65, 58.98, -82.98)
CIE-LCHlch(28.65, 101.81, 305.40°)
OKLaboklab(41.13% 0.0089 -0.24)
OKLCHoklch(41.13% 0.24 272.1)
XYZxyz(12.0855, 5.7022, 55.7107)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1EC9 #BAC91E
analogous
#1E65C9 #2D1EC9 #821EC9
triadic
#2D1EC9 #C92D1E #1EC92D
tetradic
#2D1EC9 #C91E65 #BAC91E #1EC982
square
#2D1EC9 #C91E65 #BAC91E #1EC982
split-complementary
#2D1EC9 #C9821E #65C91E
monochromatic
#150E5E #211694 #2D1EC9 #5041E3 #8177EB

Accessibility & contrast

On white

9.81
#2D1EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2D1EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1EC9
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1EC9#FFFFFF#000000##FFFFFF
##2D1EC91.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BCD
Deuteranopia (green-blind)
#003BC6
Tritanopia (blue-blind)
#005778
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d1ec9;
/* rgb */ color: rgb(45, 30, 201);
/* oklch */ color: oklch(41.1% 0.240 272.1);
Tailwind
colors: {
  custom: {
    50: '#8261db',
    500: '#2d1ec9',
    950: '#000000',
  },
}
SCSS
$custom: #2d1ec9;
$custom-light: #8261db;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1ec9",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 201
  },
  "hsl": {
    "h": 245.263,
    "s": 74.026,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41127,
    "c": 0.24016,
    "h": 272.1
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

primary
#2D1EC9
secondary
#C9D271
accent
#F137E0
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0515
muted
#7E7A83

Preview Lab

Preview with #2D1EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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