#2F2ABB#2F2ABB

#2F2ABB is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.9% C 0.215 H 273.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2F2ABB
RGBrgb(47, 42, 187)
HSLhsl(242, 63%, 45%)
HSVhsv(242, 78%, 73%)
CMYKcmyk(74.9%, 77.5%, 0%, 26.7%)
CIE-LABlab(29.02, 49.35, -74.12)
CIE-LCHlch(29.02, 89.04, 303.66°)
OKLaboklab(40.95% 0.0112 -0.2145)
OKLCHoklch(40.95% 0.215 273)
XYZxyz(10.9669, 5.8470, 47.5547)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2ABB #B6BB2A
analogous
#2A6DBB #2F2ABB #782ABB
triadic
#2F2ABB #BB2F2A #2ABB2F
tetradic
#2F2ABB #BB2A6D #B6BB2A #2ABB78
square
#2F2ABB #BB2A6D #B6BB2A #2ABB78
split-complementary
#2F2ABB #BB782A #6DBB2A
monochromatic
#161457 #221F89 #2F2ABB #504CD7 #817DE2

Accessibility & contrast

On white

9.68
#2F2ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F2ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2ABB
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2ABB#FFFFFF#000000##FFFFFF
##2F2ABB1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBF
Deuteranopia (green-blind)
#003DB8
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f2abb;
/* rgb */ color: rgb(47, 42, 187);
/* oklch */ color: oklch(40.9% 0.215 273.0);
Tailwind
colors: {
  custom: {
    50: '#7f66d1',
    500: '#2f2abb',
    950: '#000000',
  },
}
SCSS
$custom: #2f2abb;
$custom-light: #7f66d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2abb",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 187
  },
  "hsl": {
    "h": 242.069,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4095,
    "c": 0.21476,
    "h": 273
  },
  "luminance": 0.05848
}

Semantic roles & 50–950 ramp

primary
#2F2ABB
secondary
#C7CA76
accent
#E641E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2F2ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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