#2F2EB2#2F2EB2

#2F2EB2 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.5% C 0.200 H 273.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2F2EB2
RGBrgb(47, 46, 178)
HSLhsl(240, 59%, 44%)
HSVhsv(240, 74%, 70%)
CMYKcmyk(73.6%, 74.2%, 0%, 30.2%)
CIE-LABlab(28.83, 44.24, -69.09)
CIE-LCHlch(28.83, 82.04, 302.63°)
OKLaboklab(40.53% 0.0113 -0.1999)
OKLCHoklch(40.53% 0.2 273.2)
XYZxyz(10.1825, 5.7716, 42.6883)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EB2 #B1B22E
analogous
#2E6FB2 #2F2EB2 #712EB2
triadic
#2F2EB2 #B22F2E #2EB22F
tetradic
#2F2EB2 #B22E6F #B1B22E #2EB271
square
#2F2EB2 #B22E6F #B1B22E #2EB271
split-complementary
#2F2EB2 #B2712E #6FB22E
monochromatic
#151551 #222181 #2F2EB2 #4D4CD1 #7E7DDD

Accessibility & contrast

On white

9.75
#2F2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EB2
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EB2#FFFFFF#000000##FFFFFF
##2F2EB21.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f2eb2;
/* rgb */ color: rgb(47, 46, 178);
/* oklch */ color: oklch(40.5% 0.200 273.2);
Tailwind
colors: {
  custom: {
    50: '#7c68ca',
    500: '#2f2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f2eb2;
$custom-light: #7c68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2eb2",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 240.455,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40528,
    "c": 0.20021,
    "h": 273.2
  },
  "luminance": 0.05773
}

Semantic roles & 50–950 ramp

primary
#2F2EB2
secondary
#C5C676
accent
#E246E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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