#2F2BAB#2F2BAB

#2F2BAB is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.195 H 274.1°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2BAB
RGBrgb(47, 43, 171)
HSLhsl(242, 60%, 42%)
HSVhsv(242, 75%, 67%)
CMYKcmyk(72.5%, 74.9%, 0%, 32.9%)
CIE-LABlab(27.49, 43.62, -67.10)
CIE-LCHlch(27.49, 80.03, 303.03°)
OKLaboklab(39.36% 0.0141 -0.1941)
OKLCHoklch(39.36% 0.195 274.1)
XYZxyz(9.3844, 5.2714, 39.0431)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BAB #A7AB2B
analogous
#2B67AB #2F2BAB #6F2BAB
triadic
#2F2BAB #AB2F2B #2BAB2F
tetradic
#2F2BAB #AB2B67 #A7AB2B #2BAB6F
square
#2F2BAB #AB2B67 #A7AB2B #2BAB6F
split-complementary
#2F2BAB #AB6F2B #67AB2B
monochromatic
#141249 #221F7A #2F2BAB #4843D0 #7874DC

Accessibility & contrast

On white

10.22
#2F2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2BAB
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BAB#FFFFFF#000000##FFFFFF
##2F2BAB1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f2bab;
/* rgb */ color: rgb(47, 43, 171);
/* oklch */ color: oklch(39.4% 0.195 274.1);
Tailwind
colors: {
  custom: {
    50: '#7b66c5',
    500: '#2f2bab',
    950: '#000000',
  },
}
SCSS
$custom: #2f2bab;
$custom-light: #7b66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2bab",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 241.875,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39363,
    "c": 0.19458,
    "h": 274.1
  },
  "luminance": 0.05272
}

Semantic roles & 50–950 ramp

primary
#2F2BAB
secondary
#C1C46E
accent
#E345DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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