#2F28A5#2F28A5

#2F28A5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.190 H 275.1°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2F28A5
RGBrgb(47, 40, 165)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 76%, 65%)
CMYKcmyk(71.5%, 75.8%, 0%, 35.3%)
CIE-LABlab(26.27, 43.33, -65.50)
CIE-LCHlch(26.27, 78.54, 303.48°)
OKLaboklab(38.31% 0.0168 -0.1894)
OKLCHoklch(38.31% 0.19 275.1)
XYZxyz(8.7204, 4.8377, 36.0642)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28A5 #9EA528
analogous
#285FA5 #2F28A5 #6D28A5
triadic
#2F28A5 #A52F28 #28A52F
tetradic
#2F28A5 #A5285F #9EA528 #28A56D
square
#2F28A5 #A5285F #9EA528 #28A56D
split-complementary
#2F28A5 #A56D28 #5FA528
monochromatic
#131042 #211C74 #2F28A5 #433BCF #726CDB

Accessibility & contrast

On white

10.67
#2F28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28A5
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28A5#FFFFFF#000000##FFFFFF
##2F28A51.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f28a5;
/* rgb */ color: rgb(47, 40, 165);
/* oklch */ color: oklch(38.3% 0.190 275.1);
Tailwind
colors: {
  custom: {
    50: '#7a64c1',
    500: '#2f28a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f28a5;
$custom-light: #7a64c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28a5",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 243.36,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38306,
    "c": 0.19016,
    "h": 275.1
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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