#2D28A8#2D28A8

#2D28A8 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.194 H 274.0°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2D28A8
RGBrgb(45, 40, 168)
HSLhsl(242, 62%, 41%)
HSVhsv(242, 76%, 66%)
CMYKcmyk(73.2%, 76.2%, 0%, 34.1%)
CIE-LABlab(26.45, 44.12, -67.02)
CIE-LCHlch(26.45, 80.23, 303.36°)
OKLaboklab(38.5% 0.0136 -0.1938)
OKLCHoklch(38.5% 0.194 274)
XYZxyz(8.9065, 4.9017, 37.5149)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28A8 #A3A828
analogous
#2863A8 #2D28A8 #6D28A8
triadic
#2D28A8 #A82D28 #28A82D
tetradic
#2D28A8 #A82863 #A3A828 #28A86D
square
#2D28A8 #A82863 #A3A828 #28A86D
split-complementary
#2D28A8 #A86D28 #63A828
monochromatic
#131045 #201C77 #2D28A8 #423DD1 #726EDC

Accessibility & contrast

On white

10.60
#2D28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2D28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D28A8
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28A8#FFFFFF#000000##FFFFFF
##2D28A81.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d28a8;
/* rgb */ color: rgb(45, 40, 168);
/* oklch */ color: oklch(38.5% 0.194 274.0);
Tailwind
colors: {
  custom: {
    50: '#7a64c3',
    500: '#2d28a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d28a8;
$custom-light: #7a64c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28a8",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 242.344,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38497,
    "c": 0.19433,
    "h": 274
  },
  "luminance": 0.04903
}

Semantic roles & 50–950 ramp

primary
#2D28A8
secondary
#C0C369
accent
#E543DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2D28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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