#2F2EB5#2F2EB5

#2F2EB5 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.8% C 0.204 H 273.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2F2EB5
RGBrgb(47, 46, 181)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 75%, 71%)
CMYKcmyk(74%, 74.6%, 0%, 29%)
CIE-LABlab(29.14, 45.24, -70.36)
CIE-LCHlch(29.14, 83.65, 302.74°)
OKLaboklab(40.84% 0.0107 -0.2036)
OKLCHoklch(40.84% 0.204 273)
XYZxyz(10.4870, 5.8934, 44.2920)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EB5 #B4B52E
analogous
#2E71B5 #2F2EB5 #722EB5
triadic
#2F2EB5 #B52F2E #2EB52F
tetradic
#2F2EB5 #B52E71 #B4B52E #2EB572
square
#2F2EB5 #B52E71 #B4B52E #2EB572
split-complementary
#2F2EB5 #B5722E #71B52E
monochromatic
#161553 #222284 #2F2EB5 #4F4ED2 #807FDE

Accessibility & contrast

On white

9.64
#2F2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F2EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EB5
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EB5#FFFFFF#000000##FFFFFF
##2F2EB51.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#003EB3
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f2eb5;
/* rgb */ color: rgb(47, 46, 181);
/* oklch */ color: oklch(40.8% 0.204 273.0);
Tailwind
colors: {
  custom: {
    50: '#7d69cc',
    500: '#2f2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f2eb5;
$custom-light: #7d69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2eb5",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 240.444,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40843,
    "c": 0.20387,
    "h": 273
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#2F2EB5
secondary
#C7C778
accent
#E345E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2F2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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