#262D81#262D81

#262D81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.139 H 273.1°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#262D81
RGBrgb(38, 45, 129)
HSLhsl(235, 54%, 33%)
HSVhsv(235, 71%, 51%)
CMYKcmyk(70.5%, 65.1%, 0%, 49.4%)
CIE-LABlab(23.25, 26.52, -48.27)
CIE-LCHlch(23.25, 55.08, 298.79°)
OKLaboklab(34.9% 0.0075 -0.1393)
OKLCHoklch(34.9% 0.139 273.1)
XYZxyz(5.6988, 3.8733, 21.2119)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262D81 #817A26
analogous
#265A81 #262D81 #4D2681
triadic
#262D81 #81262D #2D8126
tetradic
#262D81 #81265A #817A26 #26814D
square
#262D81 #81265A #817A26 #26814D
split-complementary
#262D81 #814D26 #5A8126
monochromatic
#0A0C22 #181D52 #262D81 #343DB0 #555ECD

Accessibility & contrast

On white

11.83
#262D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#262D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262D81
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262D81#FFFFFF#000000##FFFFFF
##262D811.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #262d81;
/* rgb */ color: rgb(38, 45, 129);
/* oklch */ color: oklch(34.9% 0.139 273.1);
Tailwind
colors: {
  custom: {
    50: '#6d66a6',
    500: '#262d81',
    950: '#000000',
  },
}
SCSS
$custom: #262d81;
$custom-light: #6d66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#262d81",
  "rgb": {
    "r": 38,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 235.385,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34901,
    "c": 0.13949,
    "h": 273.1
  },
  "luminance": 0.03874
}

Semantic roles & 50–950 ramp

primary
#262D81
secondary
#B1AA51
accent
#D24ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #262D81

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

Preview Lab → · Contrast checker → · Palette generator →

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