#2F2AA1#2F2AA1

#2F2AA1 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.183 H 275.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2F2AA1
RGBrgb(47, 42, 161)
HSLhsl(243, 59%, 40%)
HSVhsv(243, 74%, 63%)
CMYKcmyk(70.8%, 73.9%, 0%, 36.9%)
CIE-LABlab(26.25, 40.87, -63.10)
CIE-LCHlch(26.25, 75.18, 302.93°)
OKLaboklab(38.17% 0.0165 -0.1824)
OKLCHoklch(38.17% 0.183 275.2)
XYZxyz(8.4312, 4.8327, 34.1998)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AA1 #9CA12A
analogous
#2A61A1 #2F2AA1 #6B2AA1
triadic
#2F2AA1 #A12F2A #2AA12F
tetradic
#2F2AA1 #A12A61 #9CA12A #2AA16B
square
#2F2AA1 #A12A61 #9CA12A #2AA16B
split-complementary
#2F2AA1 #A16B2A #61A12A
monochromatic
#131140 #211D70 #2F2AA1 #423CCC #716DD9

Accessibility & contrast

On white

10.68
#2F2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2AA1
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AA1#FFFFFF#000000##FFFFFF
##2F2AA11.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00399F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f2aa1;
/* rgb */ color: rgb(47, 42, 161);
/* oklch */ color: oklch(38.2% 0.183 275.2);
Tailwind
colors: {
  custom: {
    50: '#7965be',
    500: '#2f2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2f2aa1;
$custom-light: #7965be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2aa1",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 242.521,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38171,
    "c": 0.18318,
    "h": 275.2
  },
  "luminance": 0.04833
}

Semantic roles & 50–950 ramp

primary
#2F2AA1
secondary
#BCC067
accent
#E246DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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