#2A38AF#2A38AF

#2A38AF is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.187 H 270.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2A38AF
RGBrgb(42, 56, 175)
HSLhsl(234, 61%, 43%)
HSVhsv(234, 76%, 69%)
CMYKcmyk(76%, 68%, 0%, 31.4%)
CIE-LABlab(30.44, 36.71, -64.66)
CIE-LCHlch(30.44, 74.35, 299.58°)
OKLaboklab(41.52% 0.001 -0.1871)
OKLCHoklch(41.52% 0.187 270.3)
XYZxyz(10.1042, 6.4146, 41.2548)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A38AF #AFA12A
analogous
#2A7BAF #2A38AF #5E2AAF
triadic
#2A38AF #AF2A38 #38AF2A
tetradic
#2A38AF #AF2A7B #AFA12A #2AAF5E
square
#2A38AF #AF2A7B #AFA12A #2AAF5E
split-complementary
#2A38AF #AF5E2A #7BAF2A
monochromatic
#12184C #1E287E #2A38AF #4453D2 #7580DE

Accessibility & contrast

On white

9.20
#2A38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A38AF
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A38AF#FFFFFF#000000##FFFFFF
##2A38AF1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a38af;
/* rgb */ color: rgb(42, 56, 175);
/* oklch */ color: oklch(41.5% 0.187 270.3);
Tailwind
colors: {
  custom: {
    50: '#796fc8',
    500: '#2a38af',
    950: '#000000',
  },
}
SCSS
$custom: #2a38af;
$custom-light: #796fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a38af",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 233.684,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41517,
    "c": 0.18711,
    "h": 270.3
  },
  "luminance": 0.06416
}

Semantic roles & 50–950 ramp

primary
#2A38AF
secondary
#C6BC6F
accent
#D343E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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