#2F2AB9#2F2AB9

#2F2AB9 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.7% C 0.212 H 273.1°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2F2AB9
RGBrgb(47, 42, 185)
HSLhsl(242, 63%, 45%)
HSVhsv(242, 77%, 73%)
CMYKcmyk(74.6%, 77.3%, 0%, 27.5%)
CIE-LABlab(28.80, 48.72, -73.29)
CIE-LCHlch(28.80, 88.01, 303.61°)
OKLaboklab(40.73% 0.0117 -0.2121)
OKLCHoklch(40.73% 0.212 273.1)
XYZxyz(10.7543, 5.7619, 46.4349)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AB9 #B4B92A
analogous
#2A6DB9 #2F2AB9 #772AB9
triadic
#2F2AB9 #B92F2A #2AB92F
tetradic
#2F2AB9 #B92A6D #B4B92A #2AB977
square
#2F2AB9 #B92A6D #B4B92A #2AB977
split-complementary
#2F2AB9 #B9772A #6DB92A
monochromatic
#161355 #221F87 #2F2AB9 #4F4AD6 #807CE1

Accessibility & contrast

On white

9.76
#2F2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2AB9
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AB9#FFFFFF#000000##FFFFFF
##2F2AB91.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBD
Deuteranopia (green-blind)
#003DB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f2ab9;
/* rgb */ color: rgb(47, 42, 185);
/* oklch */ color: oklch(40.7% 0.212 273.1);
Tailwind
colors: {
  custom: {
    50: '#7e66cf',
    500: '#2f2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ab9;
$custom-light: #7e66cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ab9",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 242.098,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40731,
    "c": 0.2124,
    "h": 273.1
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#2F2AB9
secondary
#C7CA75
accent
#E642E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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