#262C78#262C78

#262C78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.128 H 273.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#262C78
RGBrgb(38, 44, 120)
HSLhsl(236, 52%, 31%)
HSVhsv(236, 68%, 47%)
CMYKcmyk(68.3%, 63.3%, 0%, 52.9%)
CIE-LABlab(22.19, 23.83, -44.29)
CIE-LCHlch(22.19, 50.30, 298.28°)
OKLaboklab(33.88% 0.0087 -0.1276)
OKLCHoklch(33.88% 0.128 273.9)
XYZxyz(5.0891, 3.5691, 18.1864)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262C78 #787226
analogous
#265578 #262C78 #492678
triadic
#262C78 #78262C #2C7826
tetradic
#262C78 #782655 #787226 #267849
square
#262C78 #782655 #787226 #267849
split-complementary
#262C78 #784926 #557826
monochromatic
#090A1B #171B4A #262C78 #353DA6 #5159C8

Accessibility & contrast

On white

12.25
#262C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#262C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262C78
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262C78#FFFFFF#000000##FFFFFF
##262C781.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #262c78;
/* rgb */ color: rgb(38, 44, 120);
/* oklch */ color: oklch(33.9% 0.128 273.9);
Tailwind
colors: {
  custom: {
    50: '#6b65a0',
    500: '#262c78',
    950: '#000000',
  },
}
SCSS
$custom: #262c78;
$custom-light: #6b65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#262c78",
  "rgb": {
    "r": 38,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 235.61,
    "s": 51.899,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33877,
    "c": 0.12793,
    "h": 273.9
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#262C78
secondary
#AAA450
accent
#D14CDB
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #262C78

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

Preview Lab → · Contrast checker → · Palette generator →

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