#261F8F#261F8F

#261F8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.174 H 274.7°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#261F8F
RGBrgb(38, 31, 143)
HSLhsl(244, 64%, 34%)
HSVhsv(244, 78%, 56%)
CMYKcmyk(73.4%, 78.3%, 0%, 43.9%)
CIE-LABlab(21.49, 40.19, -59.93)
CIE-LCHlch(21.49, 72.16, 303.85°)
OKLaboklab(34.06% 0.0143 -0.1733)
OKLCHoklch(34.06% 0.174 274.7)
XYZxyz(6.2456, 3.3746, 26.3035)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#261F8F #888F1F
analogous
#1F508F #261F8F #5E1F8F
triadic
#261F8F #8F261F #1F8F26
tetradic
#261F8F #8F1F50 #888F1F #1F8F5E
square
#261F8F #8F1F50 #888F1F #1F8F5E
split-complementary
#261F8F #8F5E1F #508F1F
monochromatic
#0B092A #19145D #261F8F #332AC1 #584FD9

Accessibility & contrast

On white

12.54
#261F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#261F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #261F8F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##261F8F#FFFFFF#000000##FFFFFF
##261F8F1.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #261f8f;
/* rgb */ color: rgb(38, 31, 143);
/* oklch */ color: oklch(34.1% 0.174 274.7);
Tailwind
colors: {
  custom: {
    50: '#725db1',
    500: '#261f8f',
    950: '#000000',
  },
}
SCSS
$custom: #261f8f;
$custom-light: #725db1;
$custom-dark: #000000;
JSON
{
  "hex": "#261f8f",
  "rgb": {
    "r": 38,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 243.75,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34061,
    "c": 0.17391,
    "h": 274.7
  },
  "luminance": 0.03375
}

Semantic roles & 50–950 ramp

primary
#261F8F
secondary
#B5BC4E
accent
#E740DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #261F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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