#2A2FAD#2A2FAD

#2A2FAD is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.9% C 0.194 H 271.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2A2FAD
RGBrgb(42, 47, 173)
HSLhsl(238, 61%, 42%)
HSVhsv(238, 76%, 68%)
CMYKcmyk(75.7%, 72.8%, 0%, 32.2%)
CIE-LABlab(28.22, 41.51, -67.10)
CIE-LCHlch(28.22, 78.91, 301.74°)
OKLaboklab(39.86% 0.0059 -0.1942)
OKLCHoklch(39.86% 0.194 271.7)
XYZxyz(9.5116, 5.5414, 40.0954)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FAD #ADA82A
analogous
#2A71AD #2A2FAD #672AAD
triadic
#2A2FAD #AD2A2F #2FAD2A
tetradic
#2A2FAD #AD2A71 #ADA82A #2AAD67
square
#2A2FAD #AD2A71 #ADA82A #2AAD67
split-complementary
#2A2FAD #AD672A #71AD2A
monochromatic
#12144B #1E227C #2A2FAD #4348D1 #7478DD

Accessibility & contrast

On white

9.96
#2A2FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A2FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FAD
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FAD#FFFFFF#000000##FFFFFF
##2A2FAD1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B1
Deuteranopia (green-blind)
#003CAB
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2fad;
/* rgb */ color: rgb(42, 47, 173);
/* oklch */ color: oklch(39.9% 0.194 271.7);
Tailwind
colors: {
  custom: {
    50: '#7969c7',
    500: '#2a2fad',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fad;
$custom-light: #7969c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fad",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 173
  },
  "hsl": {
    "h": 237.71,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39864,
    "c": 0.19432,
    "h": 271.7
  },
  "luminance": 0.05542
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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