#2A38B5#2A38B5

#2A38B5 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.195 H 270.1°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2A38B5
RGBrgb(42, 56, 181)
HSLhsl(234, 62%, 44%)
HSVhsv(234, 77%, 71%)
CMYKcmyk(76.8%, 69.1%, 0%, 29%)
CIE-LABlab(31.01, 38.85, -67.29)
CIE-LCHlch(31.01, 77.70, 300.00°)
OKLaboklab(42.11% 0.0004 -0.1948)
OKLCHoklch(42.11% 0.195 270.1)
XYZxyz(10.7067, 6.6556, 44.4275)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A38B5 #B5A72A
analogous
#2A7DB5 #2A38B5 #612AB5
triadic
#2A38B5 #B52A38 #38B52A
tetradic
#2A38B5 #B52A7D #B5A72A #2AB561
square
#2A38B5 #B52A7D #B5A72A #2AB561
split-complementary
#2A38B5 #B5612A #7DB52A
monochromatic
#131952 #1E2983 #2A38B5 #4856D4 #7984E0

Accessibility & contrast

On white

9.01
#2A38B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A38B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A38B5
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A38B5#FFFFFF#000000##FFFFFF
##2A38B51.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0042B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a38b5;
/* rgb */ color: rgb(42, 56, 181);
/* oklch */ color: oklch(42.1% 0.195 270.1);
Tailwind
colors: {
  custom: {
    50: '#7a6fcc',
    500: '#2a38b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a38b5;
$custom-light: #7a6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a38b5",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 233.957,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42108,
    "c": 0.19478,
    "h": 270.1
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#2A38B5
secondary
#C8BF73
accent
#D542E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2A38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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