#2F2FA8#2F2FA8

#2F2FA8 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.187 H 273.8°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2F2FA8
RGBrgb(47, 47, 168)
HSLhsl(240, 56%, 42%)
HSVhsv(240, 72%, 66%)
CMYKcmyk(72%, 72%, 0%, 34.1%)
CIE-LABlab(28.02, 40.30, -64.43)
CIE-LCHlch(28.02, 75.99, 302.02°)
OKLaboklab(39.64% 0.0124 -0.1863)
OKLCHoklch(39.64% 0.187 273.8)
XYZxyz(9.2543, 5.4636, 37.6051)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FA8 #A8A82F
analogous
#2F6CA8 #2F2FA8 #6C2FA8
triadic
#2F2FA8 #A82F2F #2FA82F
tetradic
#2F2FA8 #A82F6C #A8A82F #2FA86C
square
#2F2FA8 #A82F6C #A8A82F #2FA86C
split-complementary
#2F2FA8 #A86C2F #6CA82F
monochromatic
#141448 #222278 #2F2FA8 #4848CC #7878D9

Accessibility & contrast

On white

10.03
#2F2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2FA8
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FA8#FFFFFF#000000##FFFFFF
##2F2FA81.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f2fa8;
/* rgb */ color: rgb(47, 47, 168);
/* oklch */ color: oklch(39.6% 0.187 273.8);
Tailwind
colors: {
  custom: {
    50: '#7a69c3',
    500: '#2f2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fa8;
$custom-light: #7a69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fa8",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 240,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39643,
    "c": 0.18674,
    "h": 273.8
  },
  "luminance": 0.05465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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