#2D107E#2D107E

#2D107E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 31.0% C 0.165 H 283.2°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#2D107E
RGBrgb(45, 16, 126)
HSLhsl(256, 77%, 28%)
HSVhsv(256, 87%, 49%)
CMYKcmyk(64.3%, 87.3%, 0%, 50.6%)
CIE-LABlab(17.62, 42.84, -55.61)
CIE-LCHlch(17.62, 70.19, 307.61°)
OKLaboklab(30.95% 0.0375 -0.1604)
OKLCHoklch(30.95% 0.165 283.2)
XYZxyz(5.0322, 2.4345, 19.9393)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D107E #617E10
analogous
#102A7E #2D107E #64107E
triadic
#2D107E #7E2D10 #107E2D
tetradic
#2D107E #7E102A #617E10 #107E64
square
#2D107E #7E102A #617E10 #107E64
split-complementary
#2D107E #7E6410 #2A7E10
monochromatic
#0A031B #1A0948 #2D107E #4017B4 #5725E3

Accessibility & contrast

On white

14.12
#2D107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D107E
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D107E#FFFFFF#000000##FFFFFF
##2D107E1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#003349
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d107e;
/* rgb */ color: rgb(45, 16, 126);
/* oklch */ color: oklch(31.0% 0.165 283.2);
Tailwind
colors: {
  custom: {
    50: '#7254a5',
    500: '#2d107e',
    950: '#000000',
  },
}
SCSS
$custom: #2d107e;
$custom-light: #7254a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d107e",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 255.818,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30952,
    "c": 0.16468,
    "h": 283.2
  },
  "luminance": 0.02435
}

Semantic roles & 50–950 ramp

primary
#2D107E
secondary
#93B436
accent
#F434C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D107E

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

Preview Lab → · Contrast checker → · Palette generator →

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