#262C87#262C87

#262C87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.149 H 273.0°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#262C87
RGBrgb(38, 44, 135)
HSLhsl(236, 56%, 34%)
HSVhsv(236, 72%, 53%)
CMYKcmyk(71.9%, 67.4%, 0%, 47.1%)
CIE-LABlab(23.55, 29.42, -51.55)
CIE-LCHlch(23.55, 59.35, 299.71°)
OKLaboklab(35.29% 0.0078 -0.1489)
OKLCHoklch(35.29% 0.149 273)
XYZxyz(6.0717, 3.9621, 23.3618)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262C87 #878126
analogous
#265D87 #262C87 #512687
triadic
#262C87 #87262C #2C8726
tetradic
#262C87 #87265D #878126 #268751
square
#262C87 #87265D #878126 #268751
split-complementary
#262C87 #875126 #5D8726
monochromatic
#0B0D27 #191C57 #262C87 #333CB7 #585FD0

Accessibility & contrast

On white

11.71
#262C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#262C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262C87
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262C87#FFFFFF#000000##FFFFFF
##262C871.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #262c87;
/* rgb */ color: rgb(38, 44, 135);
/* oklch */ color: oklch(35.3% 0.149 273.0);
Tailwind
colors: {
  custom: {
    50: '#6f65ab',
    500: '#262c87',
    950: '#000000',
  },
}
SCSS
$custom: #262c87;
$custom-light: #6f65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#262c87",
  "rgb": {
    "r": 38,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 236.289,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35289,
    "c": 0.14911,
    "h": 273
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#262C87
secondary
#B5AF54
accent
#D648DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #262C87

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

Preview Lab → · Contrast checker → · Palette generator →

#262C87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva