#2B28A5#2B28A5

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

Color values

HEX#2B28A5
RGBrgb(43, 40, 165)
HSLhsl(241, 61%, 40%)
HSVhsv(241, 76%, 65%)
CMYKcmyk(73.9%, 75.8%, 0%, 35.3%)
CIE-LABlab(26.00, 42.94, -65.95)
CIE-LCHlch(26.00, 78.70, 303.07°)
OKLaboklab(38.05% 0.0118 -0.1908)
OKLCHoklch(38.05% 0.191 273.5)
XYZxyz(8.5443, 4.7469, 36.0560)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B28A5 #A2A528
analogous
#2863A5 #2B28A5 #6928A5
triadic
#2B28A5 #A52B28 #28A52B
tetradic
#2B28A5 #A52863 #A2A528 #28A569
square
#2B28A5 #A52863 #A2A528 #28A569
split-complementary
#2B28A5 #A56928 #63A528
monochromatic
#111042 #1E1C74 #2B28A5 #3E3BCF #6F6CDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B28A5#FFFFFF#000000##FFFFFF
##2B28A51.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)
#0043A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b28a5;
/* rgb */ color: rgb(43, 40, 165);
/* oklch */ color: oklch(38.0% 0.191 273.5);
Tailwind
colors: {
  custom: {
    50: '#7864c1',
    500: '#2b28a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b28a5;
$custom-light: #7864c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b28a5",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 241.44,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38048,
    "c": 0.19117,
    "h": 273.5
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#2B28A5
secondary
#C0C267
accent
#E444E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2B28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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