#2F2AB1#2F2AB1

#2F2AB1 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.9% C 0.203 H 273.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2F2AB1
RGBrgb(47, 42, 177)
HSLhsl(242, 62%, 43%)
HSVhsv(242, 76%, 69%)
CMYKcmyk(73.4%, 76.3%, 0%, 30.6%)
CIE-LABlab(27.94, 46.14, -69.97)
CIE-LCHlch(27.94, 83.81, 303.40°)
OKLaboklab(39.86% 0.0133 -0.2024)
OKLCHoklch(39.86% 0.203 273.8)
XYZxyz(9.9334, 5.4336, 42.1117)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AB1 #ACB12A
analogous
#2A69B1 #2F2AB1 #722AB1
triadic
#2F2AB1 #B12F2A #2AB12F
tetradic
#2F2AB1 #B12A69 #ACB12A #2AB172
square
#2F2AB1 #B12A69 #ACB12A #2AB172
split-complementary
#2F2AB1 #B1722A #69B12A
monochromatic
#15134E #221E80 #2F2AB1 #4B45D3 #7B77DF

Accessibility & contrast

On white

10.06
#2F2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AB1
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AB1#FFFFFF#000000##FFFFFF
##2F2AB11.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B5
Deuteranopia (green-blind)
#003BAF
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f2ab1;
/* rgb */ color: rgb(47, 42, 177);
/* oklch */ color: oklch(39.9% 0.203 273.8);
Tailwind
colors: {
  custom: {
    50: '#7c66ca',
    500: '#2f2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ab1;
$custom-light: #7c66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ab1",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 242.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39864,
    "c": 0.20285,
    "h": 273.8
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#2F2AB1
secondary
#C3C670
accent
#E543DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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