#261F40#261F40

#261F40 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.5% C 0.060 H 291.5°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#261F40
RGBrgb(38, 31, 64)
HSLhsl(253, 35%, 19%)
HSVhsv(253, 52%, 25%)
CMYKcmyk(40.6%, 51.6%, 0%, 74.9%)
CIE-LABlab(14.19, 12.69, -19.92)
CIE-LCHlch(14.19, 23.62, 302.51°)
OKLaboklab(26.53% 0.0221 -0.0561)
OKLCHoklch(26.53% 0.06 291.5)
XYZxyz(2.2145, 1.7622, 5.0729)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#261F40 #39401F
analogous
#1F2840 #261F40 #361F40
triadic
#261F40 #40261F #1F4026
tetradic
#261F40 #401F28 #39401F #1F4036
square
#261F40 #401F28 #39401F #1F4036
split-complementary
#261F40 #40361F #28401F
monochromatic
#0C0A15 #0E0B17 #261F40 #3E3369 #574792

Accessibility & contrast

On white

15.53
#261F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#261F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #261F40
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##261F40#FFFFFF#000000##FFFFFF
##261F401.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142541
Deuteranopia (green-blind)
#14233F
Tritanopia (blue-blind)
#20252C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #261f40;
/* rgb */ color: rgb(38, 31, 64);
/* oklch */ color: oklch(26.5% 0.060 291.5);
Tailwind
colors: {
  custom: {
    50: '#625a75',
    500: '#261f40',
    950: '#000000',
  },
}
SCSS
$custom: #261f40;
$custom-light: #625a75;
$custom-dark: #000000;
JSON
{
  "hex": "#261f40",
  "rgb": {
    "r": 38,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 252.727,
    "s": 34.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26531,
    "c": 0.06031,
    "h": 291.5
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

primary
#261F40
secondary
#6A7447
accent
#CB5DB4
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050308
muted
#79787B

Preview Lab

Preview with #261F40

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

Preview Lab → · Contrast checker → · Palette generator →

#261F40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva