#2F2FAB#2F2FAB

#2F2FAB is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.191 H 273.6°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#2F2FAB
RGBrgb(47, 47, 171)
HSLhsl(240, 57%, 43%)
HSVhsv(240, 73%, 67%)
CMYKcmyk(72.5%, 72.5%, 0%, 32.9%)
CIE-LABlab(28.32, 41.31, -65.74)
CIE-LCHlch(28.32, 77.64, 302.15°)
OKLaboklab(39.95% 0.012 -0.1901)
OKLCHoklch(39.95% 0.191 273.6)
XYZxyz(9.5370, 5.5767, 39.0940)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FAB #ABAB2F
analogous
#2F6DAB #2F2FAB #6D2FAB
triadic
#2F2FAB #AB2F2F #2FAB2F
tetradic
#2F2FAB #AB2F6D #ABAB2F #2FAB6D
square
#2F2FAB #AB2F6D #ABAB2F #2FAB6D
split-complementary
#2F2FAB #AB6D2F #6DAB2F
monochromatic
#15154B #22227B #2F2FAB #4A4ACD #7A7ADA

Accessibility & contrast

On white

9.93
#2F2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F2FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FAB
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FAB#FFFFFF#000000##FFFFFF
##2F2FAB1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f2fab;
/* rgb */ color: rgb(47, 47, 171);
/* oklch */ color: oklch(40.0% 0.191 273.6);
Tailwind
colors: {
  custom: {
    50: '#7b69c5',
    500: '#2f2fab',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fab;
$custom-light: #7b69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fab",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 240,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.3995,
    "c": 0.19052,
    "h": 273.6
  },
  "luminance": 0.05578
}

Semantic roles & 50–950 ramp

primary
#2F2FAB
secondary
#C3C373
accent
#E048E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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