#2D18A0#2D18A0

#2D18A0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.7% C 0.198 H 276.4°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2D18A0
RGBrgb(45, 24, 160)
HSLhsl(249, 74%, 36%)
HSVhsv(249, 85%, 63%)
CMYKcmyk(71.9%, 85%, 0%, 37.3%)
CIE-LABlab(22.82, 49.50, -68.17)
CIE-LCHlch(22.82, 84.25, 305.98°)
OKLaboklab(35.7% 0.0223 -0.197)
OKLCHoklch(35.7% 0.198 276.4)
XYZxyz(7.7519, 3.7485, 33.5659)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D18A0 #8BA018
analogous
#1847A0 #2D18A0 #7118A0
triadic
#2D18A0 #A02D18 #18A02D
tetradic
#2D18A0 #A01847 #8BA018 #18A071
square
#2D18A0 #A01847 #8BA018 #18A071
split-complementary
#2D18A0 #A07118 #47A018
monochromatic
#0F0836 #1E106B #2D18A0 #3C20D5 #654EE4

Accessibility & contrast

On white

12.00
#2D18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D18A0
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D18A0#FFFFFF#000000##FFFFFF
##2D18A01.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00319E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d18a0;
/* rgb */ color: rgb(45, 24, 160);
/* oklch */ color: oklch(35.7% 0.198 276.4);
Tailwind
colors: {
  custom: {
    50: '#795bbe',
    500: '#2d18a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d18a0;
$custom-light: #795bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2d18a0",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 249.265,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35702,
    "c": 0.19824,
    "h": 276.4
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#2D18A0
secondary
#B4C64D
accent
#F137D4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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