#2B125E#2B125E

#2B125E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.4% C 0.124 H 290.8°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2B125E
RGBrgb(43, 18, 94)
HSLhsl(260, 68%, 22%)
HSVhsv(260, 81%, 37%)
CMYKcmyk(54.3%, 80.9%, 0%, 63.1%)
CIE-LABlab(14.14, 32.08, -40.49)
CIE-LCHlch(14.14, 51.65, 308.39°)
OKLaboklab(27.43% 0.0442 -0.1163)
OKLCHoklch(27.43% 0.124 290.8)
XYZxyz(3.2324, 1.7542, 10.7558)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B125E #455E12
analogous
#121F5E #2B125E #51125E
triadic
#2B125E #5E2B12 #125E2B
tetradic
#2B125E #5E121F #455E12 #125E51
square
#2B125E #5E121F #455E12 #125E51
split-complementary
#2B125E #5E5112 #1F5E12
monochromatic
#0C051A #14082B #2B125E #421C91 #5A26C5

Accessibility & contrast

On white

15.55
#2B125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2B125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B125E
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B125E#FFFFFF#000000##FFFFFF
##2B125E1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#192737
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b125e;
/* rgb */ color: rgb(43, 18, 94);
/* oklch */ color: oklch(27.4% 0.124 290.8);
Tailwind
colors: {
  custom: {
    50: '#6b538c',
    500: '#2b125e',
    950: '#000000',
  },
}
SCSS
$custom: #2b125e;
$custom-light: #6b538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b125e",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 259.737,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27425,
    "c": 0.1244,
    "h": 290.8
  },
  "luminance": 0.01754
}

Semantic roles & 50–950 ramp

primary
#2B125E
secondary
#769635
accent
#EB3DB2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B125E

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

Preview Lab → · Contrast checker → · Palette generator →

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