#2A18B4#2A18B4

#2A18B4 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.9% C 0.222 H 273.1°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2A18B4
RGBrgb(42, 24, 180)
HSLhsl(247, 76%, 40%)
HSVhsv(247, 87%, 71%)
CMYKcmyk(76.7%, 86.7%, 0%, 29.4%)
CIE-LABlab(25.08, 55.13, -76.51)
CIE-LCHlch(25.08, 94.31, 305.77°)
OKLaboklab(37.89% 0.012 -0.2212)
OKLCHoklch(37.89% 0.222 273.1)
XYZxyz(9.5170, 4.4398, 43.5266)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A18B4 #A2B418
analogous
#1854B4 #2A18B4 #7818B4
triadic
#2A18B4 #B42A18 #18B42A
tetradic
#2A18B4 #B41854 #A2B418 #18B478
square
#2A18B4 #B41854 #A2B418 #18B478
split-complementary
#2A18B4 #B47818 #54B418
monochromatic
#110A48 #1D117E #2A18B4 #3D27E2 #6D5DE9

Accessibility & contrast

On white

11.12
#2A18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A18B4
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A18B4#FFFFFF#000000##FFFFFF
##2A18B41.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a18b4;
/* rgb */ color: rgb(42, 24, 180);
/* oklch */ color: oklch(37.9% 0.222 273.1);
Tailwind
colors: {
  custom: {
    50: '#7d5ccc',
    500: '#2a18b4',
    950: '#000000',
  },
}
SCSS
$custom: #2a18b4;
$custom-light: #7d5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a18b4",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 246.923,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.37894,
    "c": 0.22153,
    "h": 273.1
  },
  "luminance": 0.04441
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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