#2A398E#2A398E

#2A398E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.141 H 270.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#2A398E
RGBrgb(42, 57, 142)
HSLhsl(231, 54%, 36%)
HSVhsv(231, 70%, 56%)
CMYKcmyk(70.4%, 59.9%, 0%, 44.3%)
CIE-LABlab(27.77, 23.88, -49.00)
CIE-LCHlch(27.77, 54.51, 295.98°)
OKLaboklab(38.65% 0.0017 -0.1412)
OKLCHoklch(38.65% 0.141 270.7)
XYZxyz(7.2988, 5.3708, 26.2380)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A398E #8E7F2A
analogous
#2A6B8E #2A398E #4D2A8E
triadic
#2A398E #8E2A39 #398E2A
tetradic
#2A398E #8E2A6B #8E7F2A #2A8E4D
square
#2A398E #8E2A6B #8E7F2A #2A8E4D
split-complementary
#2A398E #8E4D2A #6B8E2A
monochromatic
#0E1330 #1C265F #2A398E #384CBD #6272D1

Accessibility & contrast

On white

10.12
#2A398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A398E
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A398E#FFFFFF#000000##FFFFFF
##2A398E1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a398e;
/* rgb */ color: rgb(42, 57, 142);
/* oklch */ color: oklch(38.7% 0.141 270.7);
Tailwind
colors: {
  custom: {
    50: '#716fb0',
    500: '#2a398e',
    950: '#000000',
  },
}
SCSS
$custom: #2a398e;
$custom-light: #716fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a398e",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 231,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38654,
    "c": 0.14121,
    "h": 270.7
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#2A398E
secondary
#B6A95D
accent
#C84ADE
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2A398E

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

Preview Lab → · Contrast checker → · Palette generator →

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