#2A38AB#2A38AB

#2A38AB is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.182 H 270.4°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#2A38AB
RGBrgb(42, 56, 171)
HSLhsl(233, 61%, 42%)
HSVhsv(233, 75%, 67%)
CMYKcmyk(75.4%, 67.3%, 0%, 32.9%)
CIE-LABlab(30.06, 35.27, -62.89)
CIE-LCHlch(30.06, 72.10, 299.28°)
OKLaboklab(41.13% 0.0013 -0.1819)
OKLCHoklch(41.13% 0.182 270.4)
XYZxyz(9.7172, 6.2598, 39.2163)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A38AB #AB9D2A
analogous
#2A79AB #2A38AB #5C2AAB
triadic
#2A38AB #AB2A38 #38AB2A
tetradic
#2A38AB #AB2A79 #AB9D2A #2AAB5C
square
#2A38AB #AB2A79 #AB9D2A #2AAB5C
split-complementary
#2A38AB #AB5C2A #79AB2A
monochromatic
#121849 #1E287A #2A38AB #4251D1 #737EDD

Accessibility & contrast

On white

9.32
#2A38AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A38AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A38AB
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A38AB#FFFFFF#000000##FFFFFF
##2A38AB1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a38ab;
/* rgb */ color: rgb(42, 56, 171);
/* oklch */ color: oklch(41.1% 0.182 270.4);
Tailwind
colors: {
  custom: {
    50: '#786fc5',
    500: '#2a38ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a38ab;
$custom-light: #786fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a38ab",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 233.488,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41129,
    "c": 0.18192,
    "h": 270.4
  },
  "luminance": 0.06261
}

Semantic roles & 50–950 ramp

primary
#2A38AB
secondary
#C4BA6D
accent
#D244E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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