#262240#262240

#262240 is a dark, muted blue. Relative luminance 0.019; OKLCH L 27.2% C 0.055 H 288.3°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#262240
RGBrgb(38, 34, 64)
HSLhsl(248, 31%, 19%)
HSVhsv(248, 47%, 25%)
CMYKcmyk(40.6%, 46.9%, 0%, 74.9%)
CIE-LABlab(15.10, 10.52, -18.48)
CIE-LCHlch(15.10, 21.27, 299.64°)
OKLaboklab(27.22% 0.0172 -0.0519)
OKLCHoklch(27.22% 0.055 288.3)
XYZxyz(2.2965, 1.9262, 5.1003)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262240 #3C4022
analogous
#222D40 #262240 #352240
triadic
#262240 #402622 #224026
tetradic
#262240 #40222D #3C4022 #224035
square
#262240 #40222D #3C4022 #224035
split-complementary
#262240 #403522 #2D4022
monochromatic
#0C0B14 #0E0D18 #262240 #3E3768 #554C90

Accessibility & contrast

On white

15.16
#262240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#262240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262240
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262240#FFFFFF#000000##FFFFFF
##2622401.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182741
Deuteranopia (green-blind)
#18253F
Tritanopia (blue-blind)
#1F282D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #262240;
/* rgb */ color: rgb(38, 34, 64);
/* oklch */ color: oklch(27.2% 0.055 288.3);
Tailwind
colors: {
  custom: {
    50: '#615d75',
    500: '#262240',
    950: '#000000',
  },
}
SCSS
$custom: #262240;
$custom-light: #615d75;
$custom-dark: #000000;
JSON
{
  "hex": "#262240",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 248,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27219,
    "c": 0.05469,
    "h": 288.3
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#262240
secondary
#6E734B
accent
#C761B9
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050408
muted
#79797B

Preview Lab

Preview with #262240

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

Preview Lab → · Contrast checker → · Palette generator →

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