#2F28A2#2F28A2

#2F28A2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.186 H 275.4°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2F28A2
RGBrgb(47, 40, 162)
HSLhsl(243, 60%, 40%)
HSVhsv(243, 75%, 64%)
CMYKcmyk(71%, 75.3%, 0%, 36.5%)
CIE-LABlab(25.95, 42.34, -64.21)
CIE-LCHlch(25.95, 76.91, 303.40°)
OKLaboklab(37.99% 0.0174 -0.1856)
OKLCHoklch(37.99% 0.186 275.4)
XYZxyz(8.4505, 4.7298, 34.6430)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28A2 #9BA228
analogous
#285EA2 #2F28A2 #6C28A2
triadic
#2F28A2 #A22F28 #28A22F
tetradic
#2F28A2 #A2285E #9BA228 #28A26C
square
#2F28A2 #A2285E #9BA228 #28A26C
split-complementary
#2F28A2 #A26C28 #5EA228
monochromatic
#131040 #211C71 #2F28A2 #4239CE #716ADA

Accessibility & contrast

On white

10.79
#2F28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F28A2
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28A2#FFFFFF#000000##FFFFFF
##2F28A21.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f28a2;
/* rgb */ color: rgb(47, 40, 162);
/* oklch */ color: oklch(38.0% 0.186 275.4);
Tailwind
colors: {
  custom: {
    50: '#7964bf',
    500: '#2f28a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f28a2;
$custom-light: #7964bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28a2",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 243.443,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37988,
    "c": 0.18645,
    "h": 275.4
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#2F28A2
secondary
#BBC165
accent
#E444DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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