#2A38B9#2A38B9

#2A38B9 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.200 H 270.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#2A38B9
RGBrgb(42, 56, 185)
HSLhsl(234, 63%, 45%)
HSVhsv(234, 77%, 73%)
CMYKcmyk(77.3%, 69.7%, 0%, 27.5%)
CIE-LABlab(31.40, 40.26, -69.02)
CIE-LCHlch(31.40, 79.91, 300.26°)
OKLaboklab(42.51% 0 -0.1998)
OKLCHoklch(42.51% 0.2 270)
XYZxyz(11.1230, 6.8221, 46.6201)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A38B9 #B9AB2A
analogous
#2A80B9 #2A38B9 #642AB9
triadic
#2A38B9 #B92A38 #38B92A
tetradic
#2A38B9 #B92A80 #B9AB2A #2AB964
square
#2A38B9 #B92A80 #B9AB2A #2AB964
split-complementary
#2A38B9 #B9642A #80B92A
monochromatic
#131A55 #1F2987 #2A38B9 #4A58D6 #7C86E1

Accessibility & contrast

On white

8.88
#2A38B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2A38B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A38B9
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A38B9#FFFFFF#000000##FFFFFF
##2A38B91.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#0043B7
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a38b9;
/* rgb */ color: rgb(42, 56, 185);
/* oklch */ color: oklch(42.5% 0.200 270.0);
Tailwind
colors: {
  custom: {
    50: '#7b6fcf',
    500: '#2a38b9',
    950: '#000000',
  },
}
SCSS
$custom: #2a38b9;
$custom-light: #7b6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a38b9",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 234.126,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42507,
    "c": 0.19983,
    "h": 270
  },
  "luminance": 0.06823
}

Semantic roles & 50–950 ramp

primary
#2A38B9
secondary
#CAC175
accent
#D642E6
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2A38B9

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

Preview Lab → · Contrast checker → · Palette generator →

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