#262C79#262C79

#262C79 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.129 H 273.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#262C79
RGBrgb(38, 44, 121)
HSLhsl(236, 52%, 31%)
HSVhsv(236, 69%, 47%)
CMYKcmyk(68.6%, 63.6%, 0%, 52.5%)
CIE-LABlab(22.28, 24.21, -44.79)
CIE-LCHlch(22.28, 50.91, 298.39°)
OKLaboklab(33.97% 0.0087 -0.1291)
OKLCHoklch(33.97% 0.129 273.8)
XYZxyz(5.1501, 3.5935, 18.5077)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262C79 #797326
analogous
#265579 #262C79 #492679
triadic
#262C79 #79262C #2C7926
tetradic
#262C79 #792655 #797326 #267949
square
#262C79 #792655 #797326 #267949
split-complementary
#262C79 #794926 #557926
monochromatic
#090A1C #171B4A #262C79 #353DA8 #515AC8

Accessibility & contrast

On white

12.22
#262C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#262C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262C79
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262C79#FFFFFF#000000##FFFFFF
##262C791.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #262c79;
/* rgb */ color: rgb(38, 44, 121);
/* oklch */ color: oklch(34.0% 0.129 273.8);
Tailwind
colors: {
  custom: {
    50: '#6b65a0',
    500: '#262c79',
    950: '#000000',
  },
}
SCSS
$custom: #262c79;
$custom-light: #6b65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#262c79",
  "rgb": {
    "r": 38,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 235.663,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33969,
    "c": 0.12937,
    "h": 273.8
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#262C79
secondary
#ABA550
accent
#D14CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #262C79

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

Preview Lab → · Contrast checker → · Palette generator →

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