#261F7B#261F7B

#261F7B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.148 H 277.3°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#261F7B
RGBrgb(38, 31, 123)
HSLhsl(245, 60%, 30%)
HSVhsv(245, 75%, 48%)
CMYKcmyk(69.1%, 74.8%, 0%, 51.8%)
CIE-LABlab(19.32, 33.40, -50.92)
CIE-LCHlch(19.32, 60.90, 303.26°)
OKLaboklab(31.88% 0.0187 -0.1471)
OKLCHoklch(31.88% 0.148 277.3)
XYZxyz(4.8633, 2.8217, 19.0234)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#261F7B #747B1F
analogous
#1F467B #261F7B #541F7B
triadic
#261F7B #7B261F #1F7B26
tetradic
#261F7B #7B1F46 #747B1F #1F7B54
square
#261F7B #7B1F46 #747B1F #1F7B54
split-complementary
#261F7B #7B541F #467B1F
monochromatic
#080619 #17134A #261F7B #352BAC #4F44D0

Accessibility & contrast

On white

13.42
#261F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#261F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #261F7B
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##261F7B#FFFFFF#000000##FFFFFF
##261F7B1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #261f7b;
/* rgb */ color: rgb(38, 31, 123);
/* oklch */ color: oklch(31.9% 0.148 277.3);
Tailwind
colors: {
  custom: {
    50: '#6d5ca2',
    500: '#261f7b',
    950: '#000000',
  },
}
SCSS
$custom: #261f7b;
$custom-light: #6d5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#261f7b",
  "rgb": {
    "r": 38,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 244.565,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31877,
    "c": 0.14826,
    "h": 277.3
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#261F7B
secondary
#A6AE48
accent
#E345D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #261F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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