#2A18B3#2A18B3

#2A18B3 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.8% C 0.220 H 273.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2A18B3
RGBrgb(42, 24, 179)
HSLhsl(247, 76%, 40%)
HSVhsv(247, 87%, 70%)
CMYKcmyk(76.5%, 86.6%, 0%, 29.8%)
CIE-LABlab(24.95, 54.84, -76.12)
CIE-LCHlch(24.95, 93.82, 305.77°)
OKLaboklab(37.77% 0.0123 -0.2201)
OKLCHoklch(37.77% 0.22 273.2)
XYZxyz(9.4155, 4.3992, 42.9920)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A18B3 #A1B318
analogous
#1853B3 #2A18B3 #7818B3
triadic
#2A18B3 #B32A18 #18B32A
tetradic
#2A18B3 #B31853 #A1B318 #18B378
square
#2A18B3 #B31853 #A1B318 #18B378
split-complementary
#2A18B3 #B37818 #53B318
monochromatic
#110A47 #1D117D #2A18B3 #3C26E2 #6D5CE9

Accessibility & contrast

On white

11.17
#2A18B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A18B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A18B3
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A18B3#FFFFFF#000000##FFFFFF
##2A18B31.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0034B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a18b3;
/* rgb */ color: rgb(42, 24, 179);
/* oklch */ color: oklch(37.8% 0.220 273.2);
Tailwind
colors: {
  custom: {
    50: '#7d5ccb',
    500: '#2a18b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a18b3;
$custom-light: #7d5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a18b3",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 246.968,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37772,
    "c": 0.22042,
    "h": 273.2
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#2A18B3
secondary
#C0CD5A
accent
#F335DD
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2A18B3

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

Preview Lab → · Contrast checker → · Palette generator →

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