#2B28A4#2B28A4

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

Color values

HEX#2B28A4
RGBrgb(43, 40, 164)
HSLhsl(241, 61%, 40%)
HSVhsv(241, 76%, 64%)
CMYKcmyk(73.8%, 75.6%, 0%, 35.7%)
CIE-LABlab(25.89, 42.61, -65.52)
CIE-LCHlch(25.89, 78.16, 303.04°)
OKLaboklab(37.94% 0.012 -0.1896)
OKLCHoklch(37.94% 0.19 273.6)
XYZxyz(8.4537, 4.7107, 35.5785)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B28A4 #A1A428
analogous
#2863A4 #2B28A4 #6928A4
triadic
#2B28A4 #A42B28 #28A42B
tetradic
#2B28A4 #A42863 #A1A428 #28A469
square
#2B28A4 #A42863 #A1A428 #28A469
split-complementary
#2B28A4 #A46928 #63A428
monochromatic
#111042 #1E1C73 #2B28A4 #3E3ACF #6E6BDB

Accessibility & contrast

On white

10.81
#2B28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B28A4
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B28A4#FFFFFF#000000##FFFFFF
##2B28A41.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#0037A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b28a4;
/* rgb */ color: rgb(43, 40, 164);
/* oklch */ color: oklch(37.9% 0.190 273.6);
Tailwind
colors: {
  custom: {
    50: '#7864c0',
    500: '#2b28a4',
    950: '#000000',
  },
}
SCSS
$custom: #2b28a4;
$custom-light: #7864c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b28a4",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 241.452,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.37941,
    "c": 0.18994,
    "h": 273.6
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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