#2F2EA6#2F2EA6

#2F2EA6 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.185 H 274.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2F2EA6
RGBrgb(47, 46, 166)
HSLhsl(241, 57%, 42%)
HSVhsv(241, 72%, 65%)
CMYKcmyk(71.7%, 72.3%, 0%, 34.9%)
CIE-LABlab(27.60, 40.21, -63.91)
CIE-LCHlch(27.60, 75.50, 302.18°)
OKLaboklab(39.29% 0.0134 -0.1848)
OKLCHoklch(39.29% 0.185 274.1)
XYZxyz(9.0299, 5.3106, 36.6182)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EA6 #A5A62E
analogous
#2E69A6 #2F2EA6 #6B2EA6
triadic
#2F2EA6 #A62F2E #2EA62F
tetradic
#2F2EA6 #A62E69 #A5A62E #2EA66B
square
#2F2EA6 #A62E69 #A5A62E #2EA66B
split-complementary
#2F2EA6 #A66B2E #69A62E
monochromatic
#141346 #212176 #2F2EA6 #4746CC #7676D9

Accessibility & contrast

On white

10.18
#2F2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EA6
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EA6#FFFFFF#000000##FFFFFF
##2F2EA61.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f2ea6;
/* rgb */ color: rgb(47, 46, 166);
/* oklch */ color: oklch(39.3% 0.185 274.1);
Tailwind
colors: {
  custom: {
    50: '#7a68c2',
    500: '#2f2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ea6;
$custom-light: #7a68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ea6",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 240.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39286,
    "c": 0.18527,
    "h": 274.1
  },
  "luminance": 0.05312
}

Semantic roles & 50–950 ramp

primary
#2F2EA6
secondary
#C0C16F
accent
#E048DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2F2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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