#26238B#26238B

#26238B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.165 H 274.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#26238B
RGBrgb(38, 35, 139)
HSLhsl(242, 60%, 34%)
HSVhsv(242, 75%, 55%)
CMYKcmyk(72.7%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.86, 36.53, -56.81)
CIE-LCHlch(21.86, 67.55, 302.74°)
OKLaboklab(34.2% 0.0131 -0.1643)
OKLCHoklch(34.2% 0.165 274.6)
XYZxyz(6.0590, 3.4776, 24.7730)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26238B #888B23
analogous
#23548B #26238B #5A238B
triadic
#26238B #8B2623 #238B26
tetradic
#26238B #8B2354 #888B23 #238B5A
square
#26238B #8B2354 #888B23 #238B5A
split-complementary
#26238B #8B5A23 #548B23
monochromatic
#0B0A29 #19175A #26238B #332FBC #5854D4

Accessibility & contrast

On white

12.38
#26238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#26238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26238B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26238B#FFFFFF#000000##FFFFFF
##26238B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #26238b;
/* rgb */ color: rgb(38, 35, 139);
/* oklch */ color: oklch(34.2% 0.165 274.6);
Tailwind
colors: {
  custom: {
    50: '#715fae',
    500: '#26238b',
    950: '#000000',
  },
}
SCSS
$custom: #26238b;
$custom-light: #715fae;
$custom-dark: #000000;
JSON
{
  "hex": "#26238b",
  "rgb": {
    "r": 38,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 241.731,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34198,
    "c": 0.16481,
    "h": 274.6
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#26238B
secondary
#B5B852
accent
#E345DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #26238B

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

Preview Lab → · Contrast checker → · Palette generator →

#26238B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva