#2F28B7#2F28B7

#2F28B7 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.3% C 0.212 H 273.5°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2F28B7
RGBrgb(47, 40, 183)
HSLhsl(243, 64%, 44%)
HSVhsv(243, 78%, 72%)
CMYKcmyk(74.3%, 78.1%, 0%, 28.2%)
CIE-LABlab(28.22, 49.12, -73.07)
CIE-LCHlch(28.22, 88.05, 303.91°)
OKLaboklab(40.26% 0.0129 -0.2114)
OKLCHoklch(40.26% 0.212 273.5)
XYZxyz(10.4755, 5.5397, 45.3078)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28B7 #B0B728
analogous
#2868B7 #2F28B7 #7628B7
triadic
#2F28B7 #B72F28 #28B72F
tetradic
#2F28B7 #B72868 #B0B728 #28B776
square
#2F28B7 #B72868 #B0B728 #28B776
split-complementary
#2F28B7 #B77628 #68B728
monochromatic
#151253 #221D85 #2F28B7 #4D46D6 #7D78E1

Accessibility & contrast

On white

9.96
#2F28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2F28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28B7
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28B7#FFFFFF#000000##FFFFFF
##2F28B71.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BB
Deuteranopia (green-blind)
#003CB5
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f28b7;
/* rgb */ color: rgb(47, 40, 183);
/* oklch */ color: oklch(40.3% 0.212 273.5);
Tailwind
colors: {
  custom: {
    50: '#7e65ce',
    500: '#2f28b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f28b7;
$custom-light: #7e65ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28b7",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 242.937,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40257,
    "c": 0.2118,
    "h": 273.5
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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