#2A38A8#2A38A8

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

Color values

HEX#2A38A8
RGBrgb(42, 56, 168)
HSLhsl(233, 60%, 41%)
HSVhsv(233, 75%, 66%)
CMYKcmyk(75%, 66.7%, 0%, 34.1%)
CIE-LABlab(29.78, 34.18, -61.54)
CIE-LCHlch(29.78, 70.40, 299.05°)
OKLaboklab(40.84% 0.0015 -0.178)
OKLCHoklch(40.84% 0.178 270.5)
XYZxyz(9.4345, 6.1467, 37.7274)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A38A8 #A89A2A
analogous
#2A77A8 #2A38A8 #5B2AA8
triadic
#2A38A8 #A82A38 #38A82A
tetradic
#2A38A8 #A82A77 #A89A2A #2AA85B
square
#2A38A8 #A82A77 #A89A2A #2AA85B
split-complementary
#2A38A8 #A85B2A #77A82A
monochromatic
#121746 #1E2877 #2A38A8 #4050CF #717DDB

Accessibility & contrast

On white

9.42
#2A38A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A38A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A38A8
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A38A8#FFFFFF#000000##FFFFFF
##2A38A81.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a38a8;
/* rgb */ color: rgb(42, 56, 168);
/* oklch */ color: oklch(40.8% 0.178 270.5);
Tailwind
colors: {
  custom: {
    50: '#776fc3',
    500: '#2a38a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a38a8;
$custom-light: #776fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a38a8",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 168
  },
  "hsl": {
    "h": 233.333,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4084,
    "c": 0.17801,
    "h": 270.5
  },
  "luminance": 0.06148
}

Semantic roles & 50–950 ramp

primary
#2A38A8
secondary
#C3B96B
accent
#D245E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A38A8

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

Preview Lab → · Contrast checker → · Palette generator →

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