#2A3E98#2A3E98

#2A3E98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.149 H 269.1°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#2A3E98
RGBrgb(42, 62, 152)
HSLhsl(229, 57%, 38%)
HSVhsv(229, 72%, 60%)
CMYKcmyk(72.4%, 59.2%, 0%, 40.4%)
CIE-LABlab(29.92, 24.28, -51.63)
CIE-LCHlch(29.92, 57.05, 295.19°)
OKLaboklab(40.52% -0.0022 -0.1489)
OKLCHoklch(40.52% 0.149 269.1)
XYZxyz(8.3430, 6.2036, 30.4574)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E98 #98842A
analogous
#2A7598 #2A3E98 #4D2A98
triadic
#2A3E98 #982A3E #3E982A
tetradic
#2A3E98 #982A75 #98842A #2A984D
square
#2A3E98 #982A75 #98842A #2A984D
split-complementary
#2A3E98 #984D2A #75982A
monochromatic
#101738 #1D2A68 #2A3E98 #3752C8 #677BD5

Accessibility & contrast

On white

9.37
#2A3E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A3E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E98
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E98#FFFFFF#000000##FFFFFF
##2A3E981.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3e98;
/* rgb */ color: rgb(42, 62, 152);
/* oklch */ color: oklch(40.5% 0.149 269.1);
Tailwind
colors: {
  custom: {
    50: '#7373b7',
    500: '#2a3e98',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e98;
$custom-light: #7373b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e98",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 229.091,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40515,
    "c": 0.14888,
    "h": 269.1
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#2A3E98
secondary
#BBAB62
accent
#C448E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A3E98

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

Preview Lab → · Contrast checker → · Palette generator →

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