#261797#261797

#261797 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.190 H 274.6°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#261797
RGBrgb(38, 23, 151)
HSLhsl(247, 74%, 34%)
HSVhsv(247, 85%, 59%)
CMYKcmyk(74.8%, 84.8%, 0%, 40.8%)
CIE-LABlab(21.05, 46.74, -65.60)
CIE-LCHlch(21.05, 80.55, 305.47°)
OKLaboklab(34.03% 0.0154 -0.1897)
OKLCHoklch(34.03% 0.19 274.6)
XYZxyz(6.6898, 3.2586, 29.5486)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#261797 #889717
analogous
#174897 #261797 #661797
triadic
#261797 #972617 #179726
tetradic
#261797 #971748 #889717 #179766
square
#261797 #971748 #889717 #179766
split-complementary
#261797 #976617 #489717
monochromatic
#0B072D #190F62 #261797 #331FCC #5846E3

Accessibility & contrast

On white

12.71
#261797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#261797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #261797
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##261797#FFFFFF#000000##FFFFFF
##2617971.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389A
Deuteranopia (green-blind)
#002D95
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #261797;
/* rgb */ color: rgb(38, 23, 151);
/* oklch */ color: oklch(34.0% 0.190 274.6);
Tailwind
colors: {
  custom: {
    50: '#7559b7',
    500: '#261797',
    950: '#000000',
  },
}
SCSS
$custom: #261797;
$custom-light: #7559b7;
$custom-dark: #000000;
JSON
{
  "hex": "#261797",
  "rgb": {
    "r": 38,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 247.031,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34033,
    "c": 0.19029,
    "h": 274.6
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#261797
secondary
#B5C446
accent
#F038DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #261797

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

Preview Lab → · Contrast checker → · Palette generator →

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