#2F2AA6#2F2AA6

#2F2AA6 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.189 H 274.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#2F2AA6
RGBrgb(47, 42, 166)
HSLhsl(242, 60%, 41%)
HSVhsv(242, 75%, 65%)
CMYKcmyk(71.7%, 74.7%, 0%, 34.9%)
CIE-LABlab(26.77, 42.53, -65.28)
CIE-LCHlch(26.77, 77.91, 303.09°)
OKLaboklab(38.69% 0.0156 -0.1888)
OKLCHoklch(38.69% 0.189 274.7)
XYZxyz(8.8809, 5.0126, 36.5685)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AA6 #A1A62A
analogous
#2A63A6 #2F2AA6 #6D2AA6
triadic
#2F2AA6 #A62F2A #2AA62F
tetradic
#2F2AA6 #A62A63 #A1A62A #2AA66D
square
#2F2AA6 #A62A63 #A1A62A #2AA66D
split-complementary
#2F2AA6 #A66D2A #63A62A
monochromatic
#131144 #211E75 #2F2AA6 #453FCE #7470DB

Accessibility & contrast

On white

10.49
#2F2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AA6
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AA6#FFFFFF#000000##FFFFFF
##2F2AA61.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2aa6;
/* rgb */ color: rgb(47, 42, 166);
/* oklch */ color: oklch(38.7% 0.189 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a65c2',
    500: '#2f2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2f2aa6;
$custom-light: #7a65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2aa6",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 242.419,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38694,
    "c": 0.18941,
    "h": 274.7
  },
  "luminance": 0.05013
}

Semantic roles & 50–950 ramp

primary
#2F2AA6
secondary
#BEC26A
accent
#E345DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2F2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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