#2F2AAA#2F2AAA

#2F2AAA is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.194 H 274.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2F2AAA
RGBrgb(47, 42, 170)
HSLhsl(242, 60%, 42%)
HSVhsv(242, 75%, 67%)
CMYKcmyk(72.4%, 75.3%, 0%, 33.3%)
CIE-LABlab(27.19, 43.85, -67.00)
CIE-LCHlch(27.19, 80.07, 303.21°)
OKLaboklab(39.12% 0.0148 -0.1938)
OKLCHoklch(39.12% 0.194 274.4)
XYZxyz(9.2535, 5.1616, 38.5310)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AAA #A5AA2A
analogous
#2A65AA #2F2AAA #6F2AAA
triadic
#2F2AAA #AA2F2A #2AAA2F
tetradic
#2F2AAA #AA2A65 #A5AA2A #2AAA6F
square
#2F2AAA #AA2A65 #A5AA2A #2AAA6F
split-complementary
#2F2AAA #AA6F2A #65AA2A
monochromatic
#141248 #211E79 #2F2AAA #4741D0 #7672DC

Accessibility & contrast

On white

10.33
#2F2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AAA
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AAA#FFFFFF#000000##FFFFFF
##2F2AAA1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#003AA8
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2aaa;
/* rgb */ color: rgb(47, 42, 170);
/* oklch */ color: oklch(39.1% 0.194 274.4);
Tailwind
colors: {
  custom: {
    50: '#7b66c5',
    500: '#2f2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2f2aaa;
$custom-light: #7b66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2aaa",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 242.344,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39117,
    "c": 0.19434,
    "h": 274.4
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#2F2AAA
secondary
#C0C36C
accent
#E444DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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