#262178#262178

#262178 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.142 H 277.2°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#262178
RGBrgb(38, 33, 120)
HSLhsl(243, 57%, 30%)
HSVhsv(243, 73%, 47%)
CMYKcmyk(68.3%, 72.5%, 0%, 52.9%)
CIE-LABlab(19.46, 31.12, -48.77)
CIE-LCHlch(19.46, 57.85, 302.54°)
OKLaboklab(31.88% 0.0178 -0.1408)
OKLCHoklch(31.88% 0.142 277.2)
XYZxyz(4.7322, 2.8554, 18.0674)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262178 #737821
analogous
#214878 #262178 #512178
triadic
#262178 #782621 #217826
tetradic
#262178 #782148 #737821 #217851
square
#262178 #782148 #737821 #217851
split-complementary
#262178 #785121 #487821
monochromatic
#080718 #171448 #262178 #352EA8 #4F47CC

Accessibility & contrast

On white

13.37
#262178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#262178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262178
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262178#FFFFFF#000000##FFFFFF
##2621781.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #262178;
/* rgb */ color: rgb(38, 33, 120);
/* oklch */ color: oklch(31.9% 0.142 277.2);
Tailwind
colors: {
  custom: {
    50: '#6c5da0',
    500: '#262178',
    950: '#000000',
  },
}
SCSS
$custom: #262178;
$custom-light: #6c5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#262178",
  "rgb": {
    "r": 38,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 243.448,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.31884,
    "c": 0.14192,
    "h": 277.2
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

primary
#262178
secondary
#A6AB4A
accent
#E048D7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #262178

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

Preview Lab → · Contrast checker → · Palette generator →

#262178 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva