#2A398B#2A398B

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

Color values

HEX#2A398B
RGBrgb(42, 57, 139)
HSLhsl(231, 54%, 35%)
HSVhsv(231, 70%, 55%)
CMYKcmyk(69.8%, 59%, 0%, 45.5%)
CIE-LABlab(27.52, 22.74, -47.54)
CIE-LCHlch(27.52, 52.70, 295.57°)
OKLaboklab(38.4% 0.0017 -0.1369)
OKLCHoklch(38.4% 0.137 270.7)
XYZxyz(7.0766, 5.2819, 25.0677)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A398B #8B7C2A
analogous
#2A698B #2A398B #4C2A8B
triadic
#2A398B #8B2A39 #398B2A
tetradic
#2A398B #8B2A69 #8B7C2A #2A8B4C
square
#2A398B #8B2A69 #8B7C2A #2A8B4C
split-complementary
#2A398B #8B4C2A #698B2A
monochromatic
#0E122D #1C265C #2A398B #384CBA #6071CF

Accessibility & contrast

On white

10.21
#2A398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A398B
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A398B#FFFFFF#000000##FFFFFF
##2A398B1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a398b;
/* rgb */ color: rgb(42, 57, 139);
/* oklch */ color: oklch(38.4% 0.137 270.7);
Tailwind
colors: {
  custom: {
    50: '#706fae',
    500: '#2a398b',
    950: '#000000',
  },
}
SCSS
$custom: #2a398b;
$custom-light: #706fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a398b",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 230.722,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38397,
    "c": 0.13692,
    "h": 270.7
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#2A398B
secondary
#B5A75C
accent
#C64BDD
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A398B

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

Preview Lab → · Contrast checker → · Palette generator →

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