#2B28AB#2B28AB

#2B28AB is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.199 H 273.0°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#2B28AB
RGBrgb(43, 40, 171)
HSLhsl(241, 62%, 41%)
HSVhsv(241, 77%, 67%)
CMYKcmyk(74.9%, 76.6%, 0%, 32.9%)
CIE-LABlab(26.65, 44.93, -68.50)
CIE-LCHlch(26.65, 81.92, 303.26°)
OKLaboklab(38.7% 0.0106 -0.1982)
OKLCHoklch(38.7% 0.199 273)
XYZxyz(9.1033, 4.9705, 38.9998)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B28AB #A8AB28
analogous
#2867AB #2B28AB #6D28AB
triadic
#2B28AB #AB2B28 #28AB2B
tetradic
#2B28AB #AB2867 #A8AB28 #28AB6D
square
#2B28AB #AB2867 #A8AB28 #28AB6D
split-complementary
#2B28AB #AB6D28 #67AB28
monochromatic
#121148 #1F1C79 #2B28AB #423ED2 #7270DE

Accessibility & contrast

On white

10.53
#2B28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2B28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B28AB
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B28AB#FFFFFF#000000##FFFFFF
##2B28AB1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0039A9
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2b28ab;
/* rgb */ color: rgb(43, 40, 171);
/* oklch */ color: oklch(38.7% 0.199 273.0);
Tailwind
colors: {
  custom: {
    50: '#7a64c5',
    500: '#2b28ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b28ab;
$custom-light: #7a64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b28ab",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 241.374,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38699,
    "c": 0.1985,
    "h": 273
  },
  "luminance": 0.04971
}

Semantic roles & 50–950 ramp

primary
#2B28AB
secondary
#C2C46A
accent
#E543E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2B28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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