#262D78#262D78

#262D78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.127 H 273.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#262D78
RGBrgb(38, 45, 120)
HSLhsl(235, 52%, 31%)
HSVhsv(235, 68%, 47%)
CMYKcmyk(68.3%, 62.5%, 0%, 52.9%)
CIE-LABlab(22.46, 23.14, -43.86)
CIE-LCHlch(22.46, 49.59, 297.82°)
OKLaboklab(34.08% 0.0078 -0.1263)
OKLCHoklch(34.08% 0.127 273.5)
XYZxyz(5.1268, 3.6445, 18.1989)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262D78 #787126
analogous
#265678 #262D78 #482678
triadic
#262D78 #78262D #2D7826
tetradic
#262D78 #782656 #787126 #267848
square
#262D78 #782656 #787126 #267848
split-complementary
#262D78 #784826 #567826
monochromatic
#090A1B #171C4A #262D78 #353EA6 #515BC8

Accessibility & contrast

On white

12.15
#262D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#262D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262D78
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262D78#FFFFFF#000000##FFFFFF
##262D781.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #262d78;
/* rgb */ color: rgb(38, 45, 120);
/* oklch */ color: oklch(34.1% 0.127 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b65a0',
    500: '#262d78',
    950: '#000000',
  },
}
SCSS
$custom: #262d78;
$custom-light: #6b65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#262d78",
  "rgb": {
    "r": 38,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 234.878,
    "s": 51.899,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34075,
    "c": 0.12658,
    "h": 273.5
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#262D78
secondary
#AAA350
accent
#CF4CDB
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #262D78

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

Preview Lab → · Contrast checker → · Palette generator →

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