#2F2EA2#2F2EA2

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

Color values

HEX#2F2EA2
RGBrgb(47, 46, 162)
HSLhsl(241, 56%, 41%)
HSVhsv(241, 72%, 64%)
CMYKcmyk(71%, 71.6%, 0%, 36.5%)
CIE-LABlab(27.20, 38.85, -62.14)
CIE-LCHlch(27.20, 73.29, 302.01°)
OKLaboklab(38.88% 0.014 -0.1796)
OKLCHoklch(38.88% 0.18 274.5)
XYZxyz(8.6687, 5.1661, 34.7157)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EA2 #A1A22E
analogous
#2E67A2 #2F2EA2 #692EA2
triadic
#2F2EA2 #A22F2E #2EA22F
tetradic
#2F2EA2 #A22E67 #A1A22E #2EA269
square
#2F2EA2 #A22E67 #A1A22E #2EA269
split-complementary
#2F2EA2 #A2692E #67A22E
monochromatic
#131343 #212072 #2F2EA2 #4543CA #7473D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F2EA2#FFFFFF#000000##FFFFFF
##2F2EA21.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)
#0046A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2ea2;
/* rgb */ color: rgb(47, 46, 162);
/* oklch */ color: oklch(38.9% 0.180 274.5);
Tailwind
colors: {
  custom: {
    50: '#7968bf',
    500: '#2f2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ea2;
$custom-light: #7968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ea2",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 240.517,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3888,
    "c": 0.18019,
    "h": 274.5
  },
  "luminance": 0.05167
}

Semantic roles & 50–950 ramp

primary
#2F2EA2
secondary
#BEBF6D
accent
#DF49DE
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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