#261771#261771

#261771 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.144 H 280.6°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#261771
RGBrgb(38, 23, 113)
HSLhsl(250, 66%, 27%)
HSVhsv(250, 80%, 44%)
CMYKcmyk(66.4%, 79.6%, 0%, 55.7%)
CIE-LABlab(16.59, 34.69, -48.99)
CIE-LCHlch(16.59, 60.03, 305.30°)
OKLaboklab(29.63% 0.0265 -0.1414)
OKLCHoklch(29.63% 0.144 280.6)
XYZxyz(4.0854, 2.2168, 15.8322)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#261771 #627117
analogous
#173571 #261771 #531771
triadic
#261771 #712617 #177126
tetradic
#261771 #711735 #627117 #177153
square
#261771 #711735 #627117 #177153
split-complementary
#261771 #715317 #357117
monochromatic
#090519 #150D3E #261771 #3721A4 #4A2ED4

Accessibility & contrast

On white

14.55
#261771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#261771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #261771
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##261771#FFFFFF#000000##FFFFFF
##2617711.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #261771;
/* rgb */ color: rgb(38, 23, 113);
/* oklch */ color: oklch(29.6% 0.144 280.6);
Tailwind
colors: {
  custom: {
    50: '#6c569b',
    500: '#261771',
    950: '#000000',
  },
}
SCSS
$custom: #261771;
$custom-light: #6c569b;
$custom-dark: #000000;
JSON
{
  "hex": "#261771",
  "rgb": {
    "r": 38,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 250,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29625,
    "c": 0.14383,
    "h": 280.6
  },
  "luminance": 0.02217
}

Semantic roles & 50–950 ramp

primary
#261771
secondary
#95A73D
accent
#E93FCD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #261771

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

Preview Lab → · Contrast checker → · Palette generator →

#261771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva