#2D28A3#2D28A3

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

Color values

HEX#2D28A3
RGBrgb(45, 40, 163)
HSLhsl(242, 61%, 40%)
HSVhsv(242, 75%, 64%)
CMYKcmyk(72.4%, 75.5%, 0%, 36.1%)
CIE-LABlab(25.92, 42.47, -64.87)
CIE-LCHlch(25.92, 77.54, 303.21°)
OKLaboklab(37.96% 0.0147 -0.1876)
OKLCHoklch(37.96% 0.188 274.5)
XYZxyz(8.4496, 4.7190, 35.1088)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D28A3 #9EA328
analogous
#2861A3 #2D28A3 #6B28A3
triadic
#2D28A3 #A32D28 #28A32D
tetradic
#2D28A3 #A32861 #9EA328 #28A36B
square
#2D28A3 #A32861 #9EA328 #28A36B
split-complementary
#2D28A3 #A36B28 #61A328
monochromatic
#121041 #1F1C72 #2D28A3 #403ACF #6F6BDB

Accessibility & contrast

On white

10.80
#2D28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D28A3
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D28A3#FFFFFF#000000##FFFFFF
##2D28A31.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d28a3;
/* rgb */ color: rgb(45, 40, 163);
/* oklch */ color: oklch(38.0% 0.188 274.5);
Tailwind
colors: {
  custom: {
    50: '#7964bf',
    500: '#2d28a3',
    950: '#000000',
  },
}
SCSS
$custom: #2d28a3;
$custom-light: #7964bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d28a3",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 242.439,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37961,
    "c": 0.18819,
    "h": 274.5
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#2D28A3
secondary
#BDC166
accent
#E444DD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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