#2F2AAB#2F2AAB

#2F2AAB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.2% C 0.196 H 274.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2F2AAB
RGBrgb(47, 42, 171)
HSLhsl(242, 61%, 42%)
HSVhsv(242, 75%, 67%)
CMYKcmyk(72.5%, 75.4%, 0%, 32.9%)
CIE-LABlab(27.30, 44.18, -67.43)
CIE-LCHlch(27.30, 80.61, 303.23°)
OKLaboklab(39.22% 0.0146 -0.195)
OKLCHoklch(39.22% 0.196 274.3)
XYZxyz(9.3485, 5.1996, 39.0311)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AAB #A6AB2A
analogous
#2A65AB #2F2AAB #702AAB
triadic
#2F2AAB #AB2F2A #2AAB2F
tetradic
#2F2AAB #AB2A65 #A6AB2A #2AAB70
square
#2F2AAB #AB2A65 #A6AB2A #2AAB70
split-complementary
#2F2AAB #AB702A #65AB2A
monochromatic
#141249 #211E7A #2F2AAB #4742D1 #7773DD

Accessibility & contrast

On white

10.29
#2F2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AAB
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AAB#FFFFFF#000000##FFFFFF
##2F2AAB1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2aab;
/* rgb */ color: rgb(47, 42, 171);
/* oklch */ color: oklch(39.2% 0.196 274.3);
Tailwind
colors: {
  custom: {
    50: '#7b66c5',
    500: '#2f2aab',
    950: '#000000',
  },
}
SCSS
$custom: #2f2aab;
$custom-light: #7b66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2aab",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 242.326,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39223,
    "c": 0.19556,
    "h": 274.3
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

primary
#2F2AAB
secondary
#C1C46D
accent
#E444DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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