#262D87#262D87

#262D87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.148 H 272.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#262D87
RGBrgb(38, 45, 135)
HSLhsl(236, 56%, 34%)
HSVhsv(236, 72%, 53%)
CMYKcmyk(71.9%, 66.7%, 0%, 47.1%)
CIE-LABlab(23.80, 28.76, -51.14)
CIE-LCHlch(23.80, 58.67, 299.35°)
OKLaboklab(35.47% 0.0071 -0.1477)
OKLCHoklch(35.47% 0.148 272.7)
XYZxyz(6.1094, 4.0375, 23.3743)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262D87 #878026
analogous
#265E87 #262D87 #502687
triadic
#262D87 #87262D #2D8726
tetradic
#262D87 #87265E #878026 #268750
square
#262D87 #87265E #878026 #268750
split-complementary
#262D87 #875026 #5E8726
monochromatic
#0B0D27 #191D57 #262D87 #333DB7 #5860D0

Accessibility & contrast

On white

11.62
#262D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#262D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262D87
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262D87#FFFFFF#000000##FFFFFF
##262D871.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #262d87;
/* rgb */ color: rgb(38, 45, 135);
/* oklch */ color: oklch(35.5% 0.148 272.7);
Tailwind
colors: {
  custom: {
    50: '#6f66ab',
    500: '#262d87',
    950: '#000000',
  },
}
SCSS
$custom: #262d87;
$custom-light: #6f66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#262d87",
  "rgb": {
    "r": 38,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 235.67,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35471,
    "c": 0.14788,
    "h": 272.7
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#262D87
secondary
#B5AE54
accent
#D448DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #262D87

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

Preview Lab → · Contrast checker → · Palette generator →

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