#2F28CD#2F28CD

#2F28CD is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.7% C 0.237 H 271.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2F28CD
RGBrgb(47, 40, 205)
HSLhsl(243, 67%, 48%)
HSVhsv(243, 80%, 80%)
CMYKcmyk(77.1%, 80.5%, 0%, 19.6%)
CIE-LABlab(30.71, 55.94, -81.90)
CIE-LCHlch(30.71, 99.18, 304.33°)
OKLaboklab(42.72% 0.0079 -0.237)
OKLCHoklch(42.72% 0.237 271.9)
XYZxyz(12.9468, 6.5283, 58.3235)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28CD #C6CD28
analogous
#2874CD #2F28CD #8128CD
triadic
#2F28CD #CD2F28 #28CD2F
tetradic
#2F28CD #CD2874 #C6CD28 #28CD81
square
#2F28CD #CD2874 #C6CD28 #28CD81
split-complementary
#2F28CD #CD8128 #74CD28
monochromatic
#181467 #231E9A #2F28CD #5A54DE #8C88E8

Accessibility & contrast

On white

9.11
#2F28CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F28CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28CD
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28CD#FFFFFF#000000##FFFFFF
##2F28CD1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050D2
Deuteranopia (green-blind)
#0040CA
Tritanopia (blue-blind)
#005C7C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f28cd;
/* rgb */ color: rgb(47, 40, 205);
/* oklch */ color: oklch(42.7% 0.237 271.9);
Tailwind
colors: {
  custom: {
    50: '#8366de',
    500: '#2f28cd',
    950: '#000000',
  },
}
SCSS
$custom: #2f28cd;
$custom-light: #8366de;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28cd",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 205
  },
  "hsl": {
    "h": 242.545,
    "s": 67.347,
    "l": 48.039
  },
  "oklch": {
    "l": 0.42716,
    "c": 0.23713,
    "h": 271.9
  },
  "luminance": 0.0653
}

Semantic roles & 50–950 ramp

primary
#2F28CD
secondary
#CED180
accent
#EA3EE3
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #2F28CD

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

Preview Lab → · Contrast checker → · Palette generator →

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