#2F28A4#2F28A4

#2F28A4 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.189 H 275.2°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2F28A4
RGBrgb(47, 40, 164)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 76%, 64%)
CMYKcmyk(71.3%, 75.6%, 0%, 35.7%)
CIE-LABlab(26.16, 43.00, -65.07)
CIE-LCHlch(26.16, 78.00, 303.45°)
OKLaboklab(38.2% 0.017 -0.1882)
OKLCHoklch(38.2% 0.189 275.2)
XYZxyz(8.6297, 4.8014, 35.5867)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28A4 #9DA428
analogous
#285FA4 #2F28A4 #6D28A4
triadic
#2F28A4 #A42F28 #28A42F
tetradic
#2F28A4 #A4285F #9DA428 #28A46D
square
#2F28A4 #A4285F #9DA428 #28A46D
split-complementary
#2F28A4 #A46D28 #5FA428
monochromatic
#131042 #211C73 #2F28A4 #433ACF #726BDB

Accessibility & contrast

On white

10.71
#2F28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28A4
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28A4#FFFFFF#000000##FFFFFF
##2F28A41.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f28a4;
/* rgb */ color: rgb(47, 40, 164);
/* oklch */ color: oklch(38.2% 0.189 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a64c0',
    500: '#2f28a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f28a4;
$custom-light: #7a64c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28a4",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 243.387,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.382,
    "c": 0.18892,
    "h": 275.2
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#2F28A4
secondary
#BCC166
accent
#E444DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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