#2A2FB8#2A2FB8

#2A2FB8 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.0% C 0.208 H 271.1°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2A2FB8
RGBrgb(42, 47, 184)
HSLhsl(238, 63%, 44%)
HSVhsv(238, 77%, 72%)
CMYKcmyk(77.2%, 74.5%, 0%, 27.8%)
CIE-LABlab(29.37, 45.25, -71.77)
CIE-LCHlch(29.37, 84.84, 302.23°)
OKLaboklab(41.03% 0.0041 -0.2078)
OKLCHoklch(41.03% 0.208 271.1)
XYZxyz(10.6202, 5.9848, 45.9336)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FB8 #B8B32A
analogous
#2A76B8 #2A2FB8 #6C2AB8
triadic
#2A2FB8 #B82A2F #2FB82A
tetradic
#2A2FB8 #B82A76 #B8B32A #2AB86C
square
#2A2FB8 #B82A76 #B8B32A #2AB86C
split-complementary
#2A2FB8 #B86C2A #76B82A
monochromatic
#131654 #1F2286 #2A2FB8 #4A4FD6 #7B7FE1

Accessibility & contrast

On white

9.56
#2A2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FB8
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FB8#FFFFFF#000000##FFFFFF
##2A2FB81.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBC
Deuteranopia (green-blind)
#003EB6
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a2fb8;
/* rgb */ color: rgb(42, 47, 184);
/* oklch */ color: oklch(41.0% 0.208 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c69cf',
    500: '#2a2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fb8;
$custom-light: #7c69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fb8",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 237.887,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41025,
    "c": 0.20784,
    "h": 271.1
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#2A2FB8
secondary
#C9C675
accent
#E042E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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