#2A2FB0#2A2FB0

#2A2FB0 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.198 H 271.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2A2FB0
RGBrgb(42, 47, 176)
HSLhsl(238, 61%, 43%)
HSVhsv(238, 76%, 69%)
CMYKcmyk(76.1%, 73.3%, 0%, 31%)
CIE-LABlab(28.53, 42.54, -68.39)
CIE-LCHlch(28.53, 80.54, 301.88°)
OKLaboklab(40.18% 0.0054 -0.198)
OKLCHoklch(40.18% 0.198 271.6)
XYZxyz(9.8052, 5.6588, 41.6414)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FB0 #B0AB2A
analogous
#2A72B0 #2A2FB0 #682AB0
triadic
#2A2FB0 #B02A2F #2FB02A
tetradic
#2A2FB0 #B02A72 #B0AB2A #2AB068
square
#2A2FB0 #B02A72 #B0AB2A #2AB068
split-complementary
#2A2FB0 #B0682A #72B02A
monochromatic
#12154D #1E227F #2A2FB0 #454AD3 #767ADE

Accessibility & contrast

On white

9.85
#2A2FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A2FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FB0
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FB0#FFFFFF#000000##FFFFFF
##2A2FB01.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#003DAE
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2fb0;
/* rgb */ color: rgb(42, 47, 176);
/* oklch */ color: oklch(40.2% 0.198 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a69c9',
    500: '#2a2fb0',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fb0;
$custom-light: #7a69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fb0",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 237.761,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40178,
    "c": 0.19804,
    "h": 271.6
  },
  "luminance": 0.0566
}

Semantic roles & 50–950 ramp

primary
#2A2FB0
secondary
#C6C370
accent
#DF43E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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