#2B26A6#2B26A6

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

Color values

HEX#2B26A6
RGBrgb(43, 38, 166)
HSLhsl(242, 63%, 40%)
HSVhsv(242, 77%, 65%)
CMYKcmyk(74.1%, 77.1%, 0%, 34.9%)
CIE-LABlab(25.72, 44.38, -67.02)
CIE-LCHlch(25.72, 80.39, 303.51°)
OKLaboklab(37.88% 0.0125 -0.1939)
OKLCHoklch(37.88% 0.194 273.7)
XYZxyz(8.5700, 4.6521, 36.5153)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B26A6 #A1A626
analogous
#2661A6 #2B26A6 #6B26A6
triadic
#2B26A6 #A62B26 #26A62B
tetradic
#2B26A6 #A62661 #A1A626 #26A66B
square
#2B26A6 #A62661 #A1A626 #26A66B
split-complementary
#2B26A6 #A66B26 #61A626
monochromatic
#110F42 #1E1B74 #2B26A6 #3E38D1 #6E6ADD

Accessibility & contrast

On white

10.88
#2B26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2B26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B26A6
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B26A6#FFFFFF#000000##FFFFFF
##2B26A61.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.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: #2b26a6;
/* rgb */ color: rgb(43, 38, 166);
/* oklch */ color: oklch(37.9% 0.194 273.7);
Tailwind
colors: {
  custom: {
    50: '#7963c2',
    500: '#2b26a6',
    950: '#000000',
  },
}
SCSS
$custom: #2b26a6;
$custom-light: #7963c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b26a6",
  "rgb": {
    "r": 43,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 242.344,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.37882,
    "c": 0.1943,
    "h": 273.7
  },
  "luminance": 0.04653
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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