#2A2FB3#2A2FB3

#2A2FB3 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.5% C 0.202 H 271.4°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2A2FB3
RGBrgb(42, 47, 179)
HSLhsl(238, 62%, 43%)
HSVhsv(238, 77%, 70%)
CMYKcmyk(76.5%, 73.7%, 0%, 29.8%)
CIE-LABlab(28.85, 43.56, -69.66)
CIE-LCHlch(28.85, 82.16, 302.02°)
OKLaboklab(40.49% 0.0049 -0.2017)
OKLCHoklch(40.49% 0.202 271.4)
XYZxyz(10.1053, 5.7789, 43.2219)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FB3 #B3AE2A
analogous
#2A73B3 #2A2FB3 #692AB3
triadic
#2A2FB3 #B32A2F #2FB32A
tetradic
#2A2FB3 #B32A73 #B3AE2A #2AB369
square
#2A2FB3 #B32A73 #B3AE2A #2AB369
split-complementary
#2A2FB3 #B3692A #73B32A
monochromatic
#131550 #1E2281 #2A2FB3 #464CD4 #787CDF

Accessibility & contrast

On white

9.74
#2A2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FB3
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FB3#FFFFFF#000000##FFFFFF
##2A2FB31.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2fb3;
/* rgb */ color: rgb(42, 47, 179);
/* oklch */ color: oklch(40.5% 0.202 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b69cb',
    500: '#2a2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fb3;
$custom-light: #7b69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fb3",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 237.81,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40494,
    "c": 0.20174,
    "h": 271.4
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#2A2FB3
secondary
#C7C472
accent
#DF43E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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