#261F78#261F78

#261F78 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.144 H 277.7°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#261F78
RGBrgb(38, 31, 120)
HSLhsl(245, 59%, 30%)
HSVhsv(245, 74%, 47%)
CMYKcmyk(68.3%, 74.2%, 0%, 52.9%)
CIE-LABlab(19.00, 32.36, -49.52)
CIE-LCHlch(19.00, 59.15, 303.17°)
OKLaboklab(31.56% 0.0193 -0.143)
OKLCHoklch(31.56% 0.144 277.7)
XYZxyz(4.6784, 2.7477, 18.0495)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#261F78 #71781F
analogous
#1F4578 #261F78 #531F78
triadic
#261F78 #78261F #1F7826
tetradic
#261F78 #781F45 #71781F #1F7853
square
#261F78 #781F45 #71781F #1F7853
split-complementary
#261F78 #78531F #45781F
monochromatic
#080618 #171247 #261F78 #352CA9 #4E43CE

Accessibility & contrast

On white

13.55
#261F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#261F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #261F78
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##261F78#FFFFFF#000000##FFFFFF
##261F781.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #261f78;
/* rgb */ color: rgb(38, 31, 120);
/* oklch */ color: oklch(31.6% 0.144 277.7);
Tailwind
colors: {
  custom: {
    50: '#6c5ca0',
    500: '#261f78',
    950: '#000000',
  },
}
SCSS
$custom: #261f78;
$custom-light: #6c5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#261f78",
  "rgb": {
    "r": 38,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 244.719,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31561,
    "c": 0.14426,
    "h": 277.7
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#261F78
secondary
#A4AB47
accent
#E246D6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #261F78

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

Preview Lab → · Contrast checker → · Palette generator →

#261F78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva