#2F28A1#2F28A1

#2F28A1 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.185 H 275.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2F28A1
RGBrgb(47, 40, 161)
HSLhsl(243, 60%, 39%)
HSVhsv(243, 75%, 63%)
CMYKcmyk(70.8%, 75.2%, 0%, 36.9%)
CIE-LABlab(25.85, 42.01, -63.77)
CIE-LCHlch(25.85, 76.37, 303.37°)
OKLaboklab(37.88% 0.0177 -0.1844)
OKLCHoklch(37.88% 0.185 275.5)
XYZxyz(8.3620, 4.6943, 34.1767)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28A1 #9AA128
analogous
#285EA1 #2F28A1 #6C28A1
triadic
#2F28A1 #A12F28 #28A12F
tetradic
#2F28A1 #A1285E #9AA128 #28A16C
square
#2F28A1 #A1285E #9AA128 #28A16C
split-complementary
#2F28A1 #A16C28 #5EA128
monochromatic
#12103F #211C70 #2F28A1 #4139CE #706ADA

Accessibility & contrast

On white

10.83
#2F28A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F28A1
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28A1#FFFFFF#000000##FFFFFF
##2F28A11.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f28a1;
/* rgb */ color: rgb(47, 40, 161);
/* oklch */ color: oklch(37.9% 0.185 275.5);
Tailwind
colors: {
  custom: {
    50: '#7964be',
    500: '#2f28a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f28a1;
$custom-light: #7964be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28a1",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 243.471,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37883,
    "c": 0.18521,
    "h": 275.5
  },
  "luminance": 0.04695
}

Semantic roles & 50–950 ramp

primary
#2F28A1
secondary
#BBC065
accent
#E344DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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