#26317E#26317E

#26317E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.130 H 271.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#26317E
RGBrgb(38, 49, 126)
HSLhsl(233, 54%, 32%)
HSVhsv(233, 70%, 49%)
CMYKcmyk(69.8%, 61.1%, 0%, 50.6%)
CIE-LABlab(24.05, 22.66, -45.08)
CIE-LCHlch(24.05, 50.46, 296.69°)
OKLaboklab(35.41% 0.0042 -0.1299)
OKLCHoklch(35.41% 0.13 271.8)
XYZxyz(5.6623, 4.1145, 20.2304)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26317E #7E7326
analogous
#265D7E #26317E #47267E
triadic
#26317E #7E2631 #317E26
tetradic
#26317E #7E265D #7E7326 #267E47
square
#26317E #7E265D #7E7326 #267E47
split-complementary
#26317E #7E4726 #5D7E26
monochromatic
#0A0C20 #181F4F #26317E #3443AD #5362CB

Accessibility & contrast

On white

11.52
#26317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#26317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26317E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26317E#FFFFFF#000000##FFFFFF
##26317E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #26317e;
/* rgb */ color: rgb(38, 49, 126);
/* oklch */ color: oklch(35.4% 0.130 271.8);
Tailwind
colors: {
  custom: {
    50: '#6c69a4',
    500: '#26317e',
    950: '#000000',
  },
}
SCSS
$custom: #26317e;
$custom-light: #6c69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#26317e",
  "rgb": {
    "r": 38,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 232.5,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3541,
    "c": 0.12995,
    "h": 271.8
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#26317E
secondary
#B0A450
accent
#CB4BDD
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #26317E

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

Preview Lab → · Contrast checker → · Palette generator →

#26317E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva