#261798#261798

#261798 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.191 H 274.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#261798
RGBrgb(38, 23, 152)
HSLhsl(247, 74%, 34%)
HSVhsv(247, 85%, 60%)
CMYKcmyk(75%, 84.9%, 0%, 40.4%)
CIE-LABlab(21.17, 47.04, -66.02)
CIE-LCHlch(21.17, 81.06, 305.47°)
OKLaboklab(34.15% 0.0151 -0.1909)
OKLCHoklch(34.15% 0.191 274.5)
XYZxyz(6.7713, 3.2912, 29.9781)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#261798 #899817
analogous
#174998 #261798 #671798
triadic
#261798 #982617 #179826
tetradic
#261798 #981749 #899817 #179867
square
#261798 #981749 #899817 #179867
split-complementary
#261798 #986717 #499817
monochromatic
#0B072E #190F63 #261798 #331FCD #5946E3

Accessibility & contrast

On white

12.66
#261798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#261798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #261798
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##261798#FFFFFF#000000##FFFFFF
##2617981.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #261798;
/* rgb */ color: rgb(38, 23, 152);
/* oklch */ color: oklch(34.2% 0.191 274.5);
Tailwind
colors: {
  custom: {
    50: '#7559b8',
    500: '#261798',
    950: '#000000',
  },
}
SCSS
$custom: #261798;
$custom-light: #7559b8;
$custom-dark: #000000;
JSON
{
  "hex": "#261798",
  "rgb": {
    "r": 38,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 246.977,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34153,
    "c": 0.19146,
    "h": 274.5
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#261798
secondary
#B6C447
accent
#F037DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #261798

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

Preview Lab → · Contrast checker → · Palette generator →

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