#2A38A3#2A38A3

#2A38A3 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.171 H 270.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2A38A3
RGBrgb(42, 56, 163)
HSLhsl(233, 59%, 40%)
HSVhsv(233, 74%, 64%)
CMYKcmyk(74.2%, 65.6%, 0%, 36.1%)
CIE-LABlab(29.32, 32.36, -59.28)
CIE-LCHlch(29.32, 67.54, 298.63°)
OKLaboklab(40.37% 0.0019 -0.1714)
OKLCHoklch(40.37% 0.171 270.6)
XYZxyz(8.9776, 5.9640, 35.3213)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A38A3 #A3952A
analogous
#2A74A3 #2A38A3 #592AA3
triadic
#2A38A3 #A32A38 #38A32A
tetradic
#2A38A3 #A32A74 #A3952A #2AA359
square
#2A38A3 #A32A74 #A3952A #2AA359
split-complementary
#2A38A3 #A3592A #74A32A
monochromatic
#111742 #1D2772 #2A38A3 #3D4ECD #6E7ADA

Accessibility & contrast

On white

9.58
#2A38A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A38A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A38A3
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A38A3#FFFFFF#000000##FFFFFF
##2A38A31.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#003FA1
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a38a3;
/* rgb */ color: rgb(42, 56, 163);
/* oklch */ color: oklch(40.4% 0.171 270.6);
Tailwind
colors: {
  custom: {
    50: '#766ebf',
    500: '#2a38a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a38a3;
$custom-light: #766ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a38a3",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 163
  },
  "hsl": {
    "h": 233.058,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40365,
    "c": 0.17139,
    "h": 270.6
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#2A38A3
secondary
#C0B668
accent
#D046E2
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A38A3

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

Preview Lab → · Contrast checker → · Palette generator →

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