#2F2AB2#2F2AB2

#2F2AB2 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.0% C 0.204 H 273.7°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2F2AB2
RGBrgb(47, 42, 178)
HSLhsl(242, 62%, 43%)
HSVhsv(242, 76%, 70%)
CMYKcmyk(73.6%, 76.4%, 0%, 30.2%)
CIE-LABlab(28.04, 46.46, -70.39)
CIE-LCHlch(28.04, 84.34, 303.43°)
OKLaboklab(39.97% 0.0131 -0.2036)
OKLCHoklch(39.97% 0.204 273.7)
XYZxyz(10.0335, 5.4736, 42.6386)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AB2 #ADB22A
analogous
#2A69B2 #2F2AB2 #732AB2
triadic
#2F2AB2 #B22F2A #2AB22F
tetradic
#2F2AB2 #B22A69 #ADB22A #2AB273
square
#2F2AB2 #B22A69 #ADB22A #2AB273
split-complementary
#2F2AB2 #B2732A #69B22A
monochromatic
#15134F #221E80 #2F2AB2 #4B46D3 #7B77DF

Accessibility & contrast

On white

10.02
#2F2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2F2AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AB2
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AB2#FFFFFF#000000##FFFFFF
##2F2AB21.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2ab2;
/* rgb */ color: rgb(47, 42, 178);
/* oklch */ color: oklch(40.0% 0.204 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d66ca',
    500: '#2f2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ab2;
$custom-light: #7d66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ab2",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 242.206,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39972,
    "c": 0.20405,
    "h": 273.7
  },
  "luminance": 0.05475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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