#2F28A3#2F28A3

#2F28A3 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.188 H 275.3°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#2F28A3
RGBrgb(47, 40, 163)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 75%, 64%)
CMYKcmyk(71.2%, 75.5%, 0%, 36.1%)
CIE-LABlab(26.06, 42.67, -64.64)
CIE-LCHlch(26.06, 77.45, 303.43°)
OKLaboklab(38.09% 0.0172 -0.1869)
OKLCHoklch(38.09% 0.188 275.3)
XYZxyz(8.5398, 4.7655, 35.1130)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28A3 #9CA328
analogous
#285EA3 #2F28A3 #6D28A3
triadic
#2F28A3 #A32F28 #28A32F
tetradic
#2F28A3 #A3285E #9CA328 #28A36D
square
#2F28A3 #A3285E #9CA328 #28A36D
split-complementary
#2F28A3 #A36D28 #5EA328
monochromatic
#131041 #211C72 #2F28A3 #423ACF #716BDB

Accessibility & contrast

On white

10.75
#2F28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28A3
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28A3#FFFFFF#000000##FFFFFF
##2F28A31.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f28a3;
/* rgb */ color: rgb(47, 40, 163);
/* oklch */ color: oklch(38.1% 0.188 275.3);
Tailwind
colors: {
  custom: {
    50: '#7964bf',
    500: '#2f28a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f28a3;
$custom-light: #7964bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28a3",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 243.415,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38094,
    "c": 0.18769,
    "h": 275.3
  },
  "luminance": 0.04766
}

Semantic roles & 50–950 ramp

primary
#2F28A3
secondary
#BCC166
accent
#E444DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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