#2F2EA0#2F2EA0

#2F2EA0 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.178 H 274.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#2F2EA0
RGBrgb(47, 46, 160)
HSLhsl(241, 55%, 40%)
HSVhsv(241, 71%, 63%)
CMYKcmyk(70.6%, 71.2%, 0%, 37.3%)
CIE-LABlab(27.01, 38.16, -61.26)
CIE-LCHlch(27.01, 72.17, 301.92°)
OKLaboklab(38.68% 0.0143 -0.1771)
OKLCHoklch(38.68% 0.178 274.6)
XYZxyz(8.4923, 5.0956, 33.7869)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EA0 #9FA02E
analogous
#2E66A0 #2F2EA0 #682EA0
triadic
#2F2EA0 #A02F2E #2EA02F
tetradic
#2F2EA0 #A02E66 #9FA02E #2EA068
square
#2F2EA0 #A02E66 #9FA02E #2EA068
split-complementary
#2F2EA0 #A0682E #66A02E
monochromatic
#131341 #212070 #2F2EA0 #4442C9 #7372D6

Accessibility & contrast

On white

10.40
#2F2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EA0
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EA0#FFFFFF#000000##FFFFFF
##2F2EA01.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2ea0;
/* rgb */ color: rgb(47, 46, 160);
/* oklch */ color: oklch(38.7% 0.178 274.6);
Tailwind
colors: {
  custom: {
    50: '#7868bd',
    500: '#2f2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ea0;
$custom-light: #7868bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ea0",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 240.526,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38679,
    "c": 0.17763,
    "h": 274.6
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#2F2EA0
secondary
#BDBE6C
accent
#DF49DD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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