#2C26A6#2C26A6

#2C26A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.194 H 274.1°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2C26A6
RGBrgb(44, 38, 166)
HSLhsl(243, 63%, 40%)
HSVhsv(243, 77%, 65%)
CMYKcmyk(73.5%, 77.1%, 0%, 34.9%)
CIE-LABlab(25.79, 44.47, -66.91)
CIE-LCHlch(25.79, 80.34, 303.61°)
OKLaboklab(37.95% 0.0137 -0.1936)
OKLCHoklch(37.95% 0.194 274.1)
XYZxyz(8.6125, 4.6740, 36.5173)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C26A6 #A0A626
analogous
#2660A6 #2C26A6 #6C26A6
triadic
#2C26A6 #A62C26 #26A62C
tetradic
#2C26A6 #A62660 #A0A626 #26A66C
square
#2C26A6 #A62660 #A0A626 #26A66C
split-complementary
#2C26A6 #A66C26 #60A626
monochromatic
#120F42 #1F1B74 #2C26A6 #3F38D1 #6F6ADD

Accessibility & contrast

On white

10.85
#2C26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2C26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C26A6
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C26A6#FFFFFF#000000##FFFFFF
##2C26A61.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c26a6;
/* rgb */ color: rgb(44, 38, 166);
/* oklch */ color: oklch(37.9% 0.194 274.1);
Tailwind
colors: {
  custom: {
    50: '#7963c2',
    500: '#2c26a6',
    950: '#000000',
  },
}
SCSS
$custom: #2c26a6;
$custom-light: #7963c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c26a6",
  "rgb": {
    "r": 44,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 242.813,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.37945,
    "c": 0.19405,
    "h": 274.1
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#2C26A6
secondary
#BFC365
accent
#E642DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C26A6

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

Preview Lab → · Contrast checker → · Palette generator →

#2C26A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva