#2F28C5#2F28C5

#2F28C5 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.8% C 0.228 H 272.4°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2F28C5
RGBrgb(47, 40, 197)
HSLhsl(243, 66%, 46%)
HSVhsv(243, 80%, 77%)
CMYKcmyk(76.1%, 79.7%, 0%, 22.7%)
CIE-LABlab(29.79, 53.49, -78.74)
CIE-LCHlch(29.79, 95.19, 304.19°)
OKLaboklab(41.81% 0.0097 -0.2278)
OKLCHoklch(41.81% 0.228 272.4)
XYZxyz(12.0057, 6.1518, 53.3672)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28C5 #BEC528
analogous
#2870C5 #2F28C5 #7E28C5
triadic
#2F28C5 #C52F28 #28C52F
tetradic
#2F28C5 #C52870 #BEC528 #28C57E
square
#2F28C5 #C52870 #BEC528 #28C57E
split-complementary
#2F28C5 #C57E28 #70C528
monochromatic
#17135F #231E92 #2F28C5 #554FDB #8682E6

Accessibility & contrast

On white

9.41
#2F28C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F28C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28C5
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28C5#FFFFFF#000000##FFFFFF
##2F28C51.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC9
Deuteranopia (green-blind)
#003EC2
Tritanopia (blue-blind)
#005977
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f28c5;
/* rgb */ color: rgb(47, 40, 197);
/* oklch */ color: oklch(41.8% 0.228 272.4);
Tailwind
colors: {
  custom: {
    50: '#8166d8',
    500: '#2f28c5',
    950: '#000000',
  },
}
SCSS
$custom: #2f28c5;
$custom-light: #8166d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28c5",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 242.675,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.41814,
    "c": 0.22806,
    "h": 272.4
  },
  "luminance": 0.06153
}

Semantic roles & 50–950 ramp

primary
#2F28C5
secondary
#CBCE7A
accent
#E93FE2
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2F28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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