#2F2AA5#2F2AA5

#2F2AA5 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.188 H 274.8°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#2F2AA5
RGBrgb(47, 42, 165)
HSLhsl(242, 59%, 41%)
HSVhsv(242, 75%, 65%)
CMYKcmyk(71.5%, 74.5%, 0%, 35.3%)
CIE-LABlab(26.67, 42.20, -64.85)
CIE-LCHlch(26.67, 77.37, 303.05°)
OKLaboklab(38.59% 0.0158 -0.1875)
OKLCHoklch(38.59% 0.188 274.8)
XYZxyz(8.7895, 4.9760, 36.0873)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AA5 #A0A52A
analogous
#2A62A5 #2F2AA5 #6C2AA5
triadic
#2F2AA5 #A52F2A #2AA52F
tetradic
#2F2AA5 #A52A62 #A0A52A #2AA56C
square
#2F2AA5 #A52A62 #A0A52A #2AA56C
split-complementary
#2F2AA5 #A56C2A #62A52A
monochromatic
#131143 #211E74 #2F2AA5 #443ECE #736FDA

Accessibility & contrast

On white

10.52
#2F2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2AA5
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AA5#FFFFFF#000000##FFFFFF
##2F2AA51.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2aa5;
/* rgb */ color: rgb(47, 42, 165);
/* oklch */ color: oklch(38.6% 0.188 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a65c1',
    500: '#2f2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2f2aa5;
$custom-light: #7a65c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2aa5",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 242.439,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38589,
    "c": 0.18817,
    "h": 274.8
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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