#2F28AC#2F28AC

#2F28AC is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.1% C 0.199 H 274.4°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#2F28AC
RGBrgb(47, 40, 172)
HSLhsl(243, 62%, 42%)
HSVhsv(243, 77%, 67%)
CMYKcmyk(72.7%, 76.7%, 0%, 32.5%)
CIE-LABlab(27.02, 45.60, -68.49)
CIE-LCHlch(27.02, 82.28, 303.66°)
OKLaboklab(39.06% 0.0153 -0.1981)
OKLCHoklch(39.06% 0.199 274.4)
XYZxyz(9.3750, 5.0996, 39.5120)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28AC #A5AC28
analogous
#2863AC #2F28AC #7128AC
triadic
#2F28AC #AC2F28 #28AC2F
tetradic
#2F28AC #AC2863 #A5AC28 #28AC71
square
#2F28AC #AC2863 #A5AC28 #28AC71
split-complementary
#2F28AC #AC7128 #63AC28
monochromatic
#141149 #211C7A #2F28AC #473FD2 #7671DE

Accessibility & contrast

On white

10.40
#2F28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28AC
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28AC#FFFFFF#000000##FFFFFF
##2F28AC1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#003AAA
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f28ac;
/* rgb */ color: rgb(47, 40, 172);
/* oklch */ color: oklch(39.1% 0.199 274.4);
Tailwind
colors: {
  custom: {
    50: '#7b64c6',
    500: '#2f28ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f28ac;
$custom-light: #7b64c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28ac",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 243.182,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39057,
    "c": 0.19868,
    "h": 274.4
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#2F28AC
secondary
#C0C56B
accent
#E542DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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