#2F28B2#2F28B2

#2F28B2 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.7% C 0.206 H 273.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#2F28B2
RGBrgb(47, 40, 178)
HSLhsl(243, 63%, 43%)
HSVhsv(243, 78%, 70%)
CMYKcmyk(73.6%, 77.5%, 0%, 30.2%)
CIE-LABlab(27.67, 47.53, -71.00)
CIE-LCHlch(27.67, 85.44, 303.80°)
OKLaboklab(39.71% 0.014 -0.2054)
OKLCHoklch(39.71% 0.206 273.9)
XYZxyz(9.9643, 5.3353, 42.6155)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28B2 #ABB228
analogous
#2866B2 #2F28B2 #7428B2
triadic
#2F28B2 #B22F28 #28B22F
tetradic
#2F28B2 #B22866 #ABB228 #28B274
square
#2F28B2 #B22866 #ABB228 #28B274
split-complementary
#2F28B2 #B27428 #66B228
monochromatic
#15124E #221D80 #2F28B2 #4A43D5 #7A75E0

Accessibility & contrast

On white

10.16
#2F28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28B2
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28B2#FFFFFF#000000##FFFFFF
##2F28B21.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B6
Deuteranopia (green-blind)
#003BB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f28b2;
/* rgb */ color: rgb(47, 40, 178);
/* oklch */ color: oklch(39.7% 0.206 273.9);
Tailwind
colors: {
  custom: {
    50: '#7d65ca',
    500: '#2f28b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f28b2;
$custom-light: #7d65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28b2",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 243.043,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39709,
    "c": 0.20589,
    "h": 273.9
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#2F28B2
secondary
#C3C76F
accent
#E641DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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