#2A2BA8#2A2BA8

#2A2BA8 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.192 H 272.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#2A2BA8
RGBrgb(42, 43, 168)
HSLhsl(240, 60%, 41%)
HSVhsv(240, 75%, 66%)
CMYKcmyk(75%, 74.4%, 0%, 34.1%)
CIE-LABlab(26.87, 42.15, -66.34)
CIE-LCHlch(26.87, 78.60, 302.43°)
OKLaboklab(38.74% 0.0086 -0.192)
OKLCHoklch(38.74% 0.192 272.6)
XYZxyz(8.8842, 5.0462, 37.5440)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BA8 #A8A72A
analogous
#2A6AA8 #2A2BA8 #682AA8
triadic
#2A2BA8 #A82A2B #2BA82A
tetradic
#2A2BA8 #A82A6A #A8A72A #2AA868
square
#2A2BA8 #A82A6A #A8A72A #2AA868
split-complementary
#2A2BA8 #A8682A #6AA82A
monochromatic
#121246 #1E1E77 #2A2BA8 #4041CF #7172DB

Accessibility & contrast

On white

10.45
#2A2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A2BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BA8
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BA8#FFFFFF#000000##FFFFFF
##2A2BA81.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2ba8;
/* rgb */ color: rgb(42, 43, 168);
/* oklch */ color: oklch(38.7% 0.192 272.6);
Tailwind
colors: {
  custom: {
    50: '#7866c3',
    500: '#2a2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ba8;
$custom-light: #7866c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ba8",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 239.524,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.3874,
    "c": 0.19217,
    "h": 272.6
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#2A2BA8
secondary
#C3C26B
accent
#E245E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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