#2F2FAF#2F2FAF

#2F2FAF is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.4% C 0.196 H 273.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2F2FAF
RGBrgb(47, 47, 175)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 73%, 69%)
CMYKcmyk(73.1%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.72, 42.67, -67.47)
CIE-LCHlch(28.72, 79.83, 302.31°)
OKLaboklab(40.36% 0.0113 -0.1952)
OKLCHoklch(40.36% 0.196 273.3)
XYZxyz(9.9241, 5.7315, 41.1324)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FAF #AFAF2F
analogous
#2F6FAF #2F2FAF #6F2FAF
triadic
#2F2FAF #AF2F2F #2FAF2F
tetradic
#2F2FAF #AF2F6F #AFAF2F #2FAF6F
square
#2F2FAF #AF2F6F #AFAF2F #2FAF6F
split-complementary
#2F2FAF #AF6F2F #6FAF2F
monochromatic
#15154F #22227F #2F2FAF #4C4CCF #7C7CDC

Accessibility & contrast

On white

9.78
#2F2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FAF
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FAF#FFFFFF#000000##FFFFFF
##2F2FAF1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f2faf;
/* rgb */ color: rgb(47, 47, 175);
/* oklch */ color: oklch(40.4% 0.196 273.3);
Tailwind
colors: {
  custom: {
    50: '#7c69c8',
    500: '#2f2faf',
    950: '#000000',
  },
}
SCSS
$custom: #2f2faf;
$custom-light: #7c69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2faf",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 240,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40361,
    "c": 0.1955,
    "h": 273.3
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#2F2FAF
secondary
#C4C475
accent
#E147E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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