#2A398A#2A398A

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

Color values

HEX#2A398A
RGBrgb(42, 57, 138)
HSLhsl(231, 53%, 35%)
HSVhsv(231, 70%, 54%)
CMYKcmyk(69.6%, 58.7%, 0%, 45.9%)
CIE-LABlab(27.44, 22.37, -47.05)
CIE-LCHlch(27.44, 52.10, 295.43°)
OKLaboklab(38.31% 0.0016 -0.1355)
OKLCHoklch(38.31% 0.135 270.7)
XYZxyz(7.0039, 5.2528, 24.6846)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A398A #8A7B2A
analogous
#2A698A #2A398A #4B2A8A
triadic
#2A398A #8A2A39 #398A2A
tetradic
#2A398A #8A2A69 #8A7B2A #2A8A4B
square
#2A398A #8A2A69 #8A7B2A #2A8A4B
split-complementary
#2A398A #8A4B2A #698A2A
monochromatic
#0D122C #1C265B #2A398A #384CB9 #6071CF

Accessibility & contrast

On white

10.24
#2A398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A398A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A398A
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A398A#FFFFFF#000000##FFFFFF
##2A398A1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a398a;
/* rgb */ color: rgb(42, 57, 138);
/* oklch */ color: oklch(38.3% 0.135 270.7);
Tailwind
colors: {
  custom: {
    50: '#706fad',
    500: '#2a398a',
    950: '#000000',
  },
}
SCSS
$custom: #2a398a;
$custom-light: #706fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a398a",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 230.625,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38312,
    "c": 0.13548,
    "h": 270.7
  },
  "luminance": 0.05253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A398A

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

Preview Lab → · Contrast checker → · Palette generator →

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