#2A2FAB#2A2FAB

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

Color values

HEX#2A2FAB
RGBrgb(42, 47, 171)
HSLhsl(238, 61%, 42%)
HSVhsv(238, 75%, 67%)
CMYKcmyk(75.4%, 72.5%, 0%, 32.9%)
CIE-LABlab(28.02, 40.82, -66.24)
CIE-LCHlch(28.02, 77.81, 301.64°)
OKLaboklab(39.66% 0.0062 -0.1917)
OKLCHoklch(39.66% 0.192 271.8)
XYZxyz(9.3196, 5.4646, 39.0838)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FAB #ABA62A
analogous
#2A70AB #2A2FAB #652AAB
triadic
#2A2FAB #AB2A2F #2FAB2A
tetradic
#2A2FAB #AB2A70 #ABA62A #2AAB65
square
#2A2FAB #AB2A70 #ABA62A #2AAB65
split-complementary
#2A2FAB #AB652A #70AB2A
monochromatic
#121449 #1E217A #2A2FAB #4247D1 #7377DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A2FAB#FFFFFF#000000##FFFFFF
##2A2FAB1.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)
#0048AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a2fab;
/* rgb */ color: rgb(42, 47, 171);
/* oklch */ color: oklch(39.7% 0.192 271.8);
Tailwind
colors: {
  custom: {
    50: '#7969c5',
    500: '#2a2fab',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fab;
$custom-light: #7969c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fab",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 237.674,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39656,
    "c": 0.19182,
    "h": 271.8
  },
  "luminance": 0.05466
}

Semantic roles & 50–950 ramp

primary
#2A2FAB
secondary
#C4C16D
accent
#DE44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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