#2C26A8#2C26A8

#2C26A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.2% C 0.196 H 273.9°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2C26A8
RGBrgb(44, 38, 168)
HSLhsl(243, 63%, 40%)
HSVhsv(243, 77%, 66%)
CMYKcmyk(73.8%, 77.4%, 0%, 34.1%)
CIE-LABlab(26.00, 45.12, -67.76)
CIE-LCHlch(26.00, 81.41, 303.66°)
OKLaboklab(38.16% 0.0133 -0.196)
OKLCHoklch(38.16% 0.196 273.9)
XYZxyz(8.7974, 4.7480, 37.4910)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C26A8 #A2A826
analogous
#2661A8 #2C26A8 #6D26A8
triadic
#2C26A8 #A82C26 #26A82C
tetradic
#2C26A8 #A82661 #A2A826 #26A86D
square
#2C26A8 #A82661 #A2A826 #26A86D
split-complementary
#2C26A8 #A86D26 #61A826
monochromatic
#120F44 #1F1B76 #2C26A8 #4039D2 #706BDE

Accessibility & contrast

On white

10.77
#2C26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C26A8
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C26A8#FFFFFF#000000##FFFFFF
##2C26A81.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c26a8;
/* rgb */ color: rgb(44, 38, 168);
/* oklch */ color: oklch(38.2% 0.196 273.9);
Tailwind
colors: {
  custom: {
    50: '#7a63c3',
    500: '#2c26a8',
    950: '#000000',
  },
}
SCSS
$custom: #2c26a8;
$custom-light: #7a63c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c26a8",
  "rgb": {
    "r": 44,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 242.769,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38164,
    "c": 0.19647,
    "h": 273.9
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#2C26A8
secondary
#BFC466
accent
#E642DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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