#2A3B8A#2A3B8A

#2A3B8A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.7% C 0.133 H 269.9°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2A3B8A
RGBrgb(42, 59, 138)
HSLhsl(229, 53%, 35%)
HSVhsv(229, 70%, 54%)
CMYKcmyk(69.6%, 57.2%, 0%, 45.9%)
CIE-LABlab(27.99, 21.00, -46.16)
CIE-LCHlch(27.99, 50.71, 294.46°)
OKLaboklab(38.72% -0.0002 -0.1328)
OKLCHoklch(38.72% 0.133 269.9)
XYZxyz(7.1047, 5.4545, 24.7182)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3B8A #8A792A
analogous
#2A6B8A #2A3B8A #492A8A
triadic
#2A3B8A #8A2A3B #3B8A2A
tetradic
#2A3B8A #8A2A6B #8A792A #2A8A49
square
#2A3B8A #8A2A6B #8A792A #2A8A49
split-complementary
#2A3B8A #8A492A #6B8A2A
monochromatic
#0D132C #1C275B #2A3B8A #384FB9 #6073CF

Accessibility & contrast

On white

10.04
#2A3B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A3B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3B8A
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3B8A#FFFFFF#000000##FFFFFF
##2A3B8A1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3b8a;
/* rgb */ color: rgb(42, 59, 138);
/* oklch */ color: oklch(38.7% 0.133 269.9);
Tailwind
colors: {
  custom: {
    50: '#7070ad',
    500: '#2a3b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a3b8a;
$custom-light: #7070ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3b8a",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 229.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38723,
    "c": 0.13282,
    "h": 269.9
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#2A3B8A
secondary
#B4A55B
accent
#C34BDD
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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