#261F52#261F52

#261F52 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.090 H 285.3°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#261F52
RGBrgb(38, 31, 82)
HSLhsl(248, 45%, 22%)
HSVhsv(248, 62%, 32%)
CMYKcmyk(53.7%, 62.2%, 0%, 67.8%)
CIE-LABlab(15.49, 18.89, -30.23)
CIE-LCHlch(15.49, 35.65, 302.01°)
OKLaboklab(27.93% 0.0236 -0.0864)
OKLCHoklch(27.93% 0.09 285.3)
XYZxyz(2.8119, 2.0011, 8.2191)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#261F52 #4B521F
analogous
#1F3252 #261F52 #401F52
triadic
#261F52 #52261F #1F5226
tetradic
#261F52 #521F32 #4B521F #1F5240
square
#261F52 #521F32 #4B521F #1F5240
split-complementary
#261F52 #52401F #32521F
monochromatic
#0A0816 #110E26 #261F52 #3B307E #4F41AB

Accessibility & contrast

On white

15.00
#261F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#261F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #261F52
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##261F52#FFFFFF#000000##FFFFFF
##261F521.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#162B35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #261f52;
/* rgb */ color: rgb(38, 31, 82);
/* oklch */ color: oklch(27.9% 0.090 285.3);
Tailwind
colors: {
  custom: {
    50: '#645a83',
    500: '#261f52',
    950: '#000000',
  },
}
SCSS
$custom: #261f52;
$custom-light: #645a83;
$custom-dark: #000000;
JSON
{
  "hex": "#261f52",
  "rgb": {
    "r": 38,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 248.235,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27927,
    "c": 0.08954,
    "h": 285.3
  },
  "luminance": 0.02001
}

Semantic roles & 50–950 ramp

primary
#261F52
secondary
#7E8746
accent
#D553C3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #261F52

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

Preview Lab → · Contrast checker → · Palette generator →

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