#2A2FAF#2A2FAF

#2A2FAF is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.197 H 271.6°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2A2FAF
RGBrgb(42, 47, 175)
HSLhsl(238, 61%, 43%)
HSVhsv(238, 76%, 69%)
CMYKcmyk(76%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.43, 42.20, -67.96)
CIE-LCHlch(28.43, 80.00, 301.84°)
OKLaboklab(40.07% 0.0056 -0.1967)
OKLCHoklch(40.07% 0.197 271.6)
XYZxyz(9.7066, 5.6194, 41.1222)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FAF #AFAA2A
analogous
#2A72AF #2A2FAF #672AAF
triadic
#2A2FAF #AF2A2F #2FAF2A
tetradic
#2A2FAF #AF2A72 #AFAA2A #2AAF67
square
#2A2FAF #AF2A72 #AFAA2A #2AAF67
split-complementary
#2A2FAF #AF672A #72AF2A
monochromatic
#12144C #1E227E #2A2FAF #4449D2 #7579DE

Accessibility & contrast

On white

9.89
#2A2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2FAF
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FAF#FFFFFF#000000##FFFFFF
##2A2FAF1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2faf;
/* rgb */ color: rgb(42, 47, 175);
/* oklch */ color: oklch(40.1% 0.197 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a69c8',
    500: '#2a2faf',
    950: '#000000',
  },
}
SCSS
$custom: #2a2faf;
$custom-light: #7a69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2faf",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 237.744,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40073,
    "c": 0.19681,
    "h": 271.6
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#2A2FAF
secondary
#C6C26F
accent
#DE43E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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