#2F2AA2#2F2AA2

#2F2AA2 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.184 H 275.1°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2F2AA2
RGBrgb(47, 42, 162)
HSLhsl(243, 59%, 40%)
HSVhsv(243, 74%, 64%)
CMYKcmyk(71%, 74.1%, 0%, 36.5%)
CIE-LABlab(26.36, 41.20, -63.54)
CIE-LCHlch(26.36, 75.73, 302.96°)
OKLaboklab(38.28% 0.0163 -0.1837)
OKLCHoklch(38.28% 0.184 275.1)
XYZxyz(8.5197, 4.8681, 34.6661)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AA2 #9DA22A
analogous
#2A61A2 #2F2AA2 #6B2AA2
triadic
#2F2AA2 #A22F2A #2AA22F
tetradic
#2F2AA2 #A22A61 #9DA22A #2AA26B
square
#2F2AA2 #A22A61 #9DA22A #2AA26B
split-complementary
#2F2AA2 #A26B2A #61A22A
monochromatic
#131141 #211D71 #2F2AA2 #433DCD #726DD9

Accessibility & contrast

On white

10.64
#2F2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AA2
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AA2#FFFFFF#000000##FFFFFF
##2F2AA21.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2aa2;
/* rgb */ color: rgb(47, 42, 162);
/* oklch */ color: oklch(38.3% 0.184 275.1);
Tailwind
colors: {
  custom: {
    50: '#7965bf',
    500: '#2f2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2f2aa2;
$custom-light: #7965bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2aa2",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 242.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38275,
    "c": 0.18443,
    "h": 275.1
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#2F2AA2
secondary
#BCC068
accent
#E246DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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