#2A38AA#2A38AA

#2A38AA is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.0% C 0.181 H 270.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2A38AA
RGBrgb(42, 56, 170)
HSLhsl(233, 60%, 42%)
HSVhsv(233, 75%, 67%)
CMYKcmyk(75.3%, 67.1%, 0%, 33.3%)
CIE-LABlab(29.97, 34.91, -62.44)
CIE-LCHlch(29.97, 71.53, 299.21°)
OKLaboklab(41.03% 0.0014 -0.1806)
OKLCHoklch(41.03% 0.181 270.4)
XYZxyz(9.6222, 6.2218, 38.7162)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A38AA #AA9C2A
analogous
#2A78AA #2A38AA #5C2AAA
triadic
#2A38AA #AA2A38 #38AA2A
tetradic
#2A38AA #AA2A78 #AA9C2A #2AAA5C
square
#2A38AA #AA2A78 #AA9C2A #2AAA5C
split-complementary
#2A38AA #AA5C2A #78AA2A
monochromatic
#121848 #1E2879 #2A38AA #4151D0 #727EDC

Accessibility & contrast

On white

9.36
#2A38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A38AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A38AA
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A38AA#FFFFFF#000000##FFFFFF
##2A38AA1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a38aa;
/* rgb */ color: rgb(42, 56, 170);
/* oklch */ color: oklch(41.0% 0.181 270.4);
Tailwind
colors: {
  custom: {
    50: '#786fc4',
    500: '#2a38aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a38aa;
$custom-light: #786fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a38aa",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 233.438,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41032,
    "c": 0.18063,
    "h": 270.4
  },
  "luminance": 0.06223
}

Semantic roles & 50–950 ramp

primary
#2A38AA
secondary
#C3BA6C
accent
#D244E4
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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