#2A38A7#2A38A7

#2A38A7 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.177 H 270.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2A38A7
RGBrgb(42, 56, 167)
HSLhsl(233, 60%, 41%)
HSVhsv(233, 75%, 65%)
CMYKcmyk(74.9%, 66.5%, 0%, 34.5%)
CIE-LABlab(29.69, 33.82, -61.09)
CIE-LCHlch(29.69, 69.83, 298.97°)
OKLaboklab(40.74% 0.0016 -0.1767)
OKLCHoklch(40.74% 0.177 270.5)
XYZxyz(9.3417, 6.1096, 37.2387)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A38A7 #A7992A
analogous
#2A76A7 #2A38A7 #5A2AA7
triadic
#2A38A7 #A72A38 #38A72A
tetradic
#2A38A7 #A72A76 #A7992A #2AA75A
square
#2A38A7 #A72A76 #A7992A #2AA75A
split-complementary
#2A38A7 #A75A2A #76A72A
monochromatic
#111745 #1E2876 #2A38A7 #3F4FCF #707CDB

Accessibility & contrast

On white

9.45
#2A38A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A38A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A38A7
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A38A7#FFFFFF#000000##FFFFFF
##2A38A71.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a38a7;
/* rgb */ color: rgb(42, 56, 167);
/* oklch */ color: oklch(40.7% 0.177 270.5);
Tailwind
colors: {
  custom: {
    50: '#776ec2',
    500: '#2a38a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a38a7;
$custom-light: #776ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a38a7",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 167
  },
  "hsl": {
    "h": 233.28,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40744,
    "c": 0.17669,
    "h": 270.5
  },
  "luminance": 0.06111
}

Semantic roles & 50–950 ramp

primary
#2A38A7
secondary
#C2B86B
accent
#D145E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A38A7

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

Preview Lab → · Contrast checker → · Palette generator →

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