#2F28B5#2F28B5

#2F28B5 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.0% C 0.209 H 273.7°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2F28B5
RGBrgb(47, 40, 181)
HSLhsl(243, 64%, 43%)
HSVhsv(243, 78%, 71%)
CMYKcmyk(74%, 77.9%, 0%, 29%)
CIE-LABlab(28.00, 48.49, -72.25)
CIE-LCHlch(28.00, 87.01, 303.87°)
OKLaboklab(40.04% 0.0133 -0.209)
OKLCHoklch(40.04% 0.209 273.7)
XYZxyz(10.2688, 5.4571, 44.2192)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28B5 #AEB528
analogous
#2867B5 #2F28B5 #7528B5
triadic
#2F28B5 #B52F28 #28B52F
tetradic
#2F28B5 #B52867 #AEB528 #28B575
square
#2F28B5 #B52867 #AEB528 #28B575
split-complementary
#2F28B5 #B57528 #67B528
monochromatic
#151251 #221D83 #2F28B5 #4C44D6 #7C77E1

Accessibility & contrast

On white

10.04
#2F28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F28B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28B5
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28B5#FFFFFF#000000##FFFFFF
##2F28B51.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B9
Deuteranopia (green-blind)
#003BB3
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f28b5;
/* rgb */ color: rgb(47, 40, 181);
/* oklch */ color: oklch(40.0% 0.209 273.7);
Tailwind
colors: {
  custom: {
    50: '#7e65cd',
    500: '#2f28b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f28b5;
$custom-light: #7e65cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28b5",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 242.979,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40037,
    "c": 0.20945,
    "h": 273.7
  },
  "luminance": 0.05458
}

Semantic roles & 50–950 ramp

primary
#2F28B5
secondary
#C4C870
accent
#E741DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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