#2A398D#2A398D

#2A398D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.140 H 270.7°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#2A398D
RGBrgb(42, 57, 141)
HSLhsl(231, 54%, 36%)
HSVhsv(231, 70%, 55%)
CMYKcmyk(70.2%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.68, 23.50, -48.51)
CIE-LCHlch(27.68, 53.91, 295.85°)
OKLaboklab(38.57% 0.0017 -0.1398)
OKLCHoklch(38.57% 0.14 270.7)
XYZxyz(7.2241, 5.3409, 25.8443)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A398D #8D7E2A
analogous
#2A6A8D #2A398D #4C2A8D
triadic
#2A398D #8D2A39 #398D2A
tetradic
#2A398D #8D2A6A #8D7E2A #2A8D4C
square
#2A398D #8D2A6A #8D7E2A #2A8D4C
split-complementary
#2A398D #8D4C2A #6A8D2A
monochromatic
#0E132F #1C265E #2A398D #384CBC #6172D0

Accessibility & contrast

On white

10.15
#2A398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A398D
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A398D#FFFFFF#000000##FFFFFF
##2A398D1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a398d;
/* rgb */ color: rgb(42, 57, 141);
/* oklch */ color: oklch(38.6% 0.140 270.7);
Tailwind
colors: {
  custom: {
    50: '#716faf',
    500: '#2a398d',
    950: '#000000',
  },
}
SCSS
$custom: #2a398d;
$custom-light: #716faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a398d",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 230.909,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.13979,
    "h": 270.7
  },
  "luminance": 0.05342
}

Semantic roles & 50–950 ramp

primary
#2A398D
secondary
#B6A85D
accent
#C74ADD
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2A398D

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

Preview Lab → · Contrast checker → · Palette generator →

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