#2A3A9C#2A3A9C

#2A3A9C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.159 H 270.3°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#2A3A9C
RGBrgb(42, 58, 156)
HSLhsl(232, 58%, 39%)
HSVhsv(232, 73%, 61%)
CMYKcmyk(73.1%, 62.8%, 0%, 38.8%)
CIE-LABlab(29.20, 28.46, -55.23)
CIE-LCHlch(29.20, 62.13, 297.26°)
OKLaboklab(40.09% 0.0008 -0.1595)
OKLCHoklch(40.09% 0.159 270.3)
XYZxyz(8.4666, 5.9178, 32.1421)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A9C #9C8C2A
analogous
#2A739C #2A3A9C #532A9C
triadic
#2A3A9C #9C2A3A #3A9C2A
tetradic
#2A3A9C #9C2A73 #9C8C2A #2A9C53
square
#2A3A9C #9C2A73 #9C8C2A #2A9C53
split-complementary
#2A3A9C #9C532A #739C2A
monochromatic
#10163C #1D286C #2A3A9C #394ECA #6A79D7

Accessibility & contrast

On white

9.62
#2A3A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A3A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A9C
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A9C#FFFFFF#000000##FFFFFF
##2A3A9C1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a3a9c;
/* rgb */ color: rgb(42, 58, 156);
/* oklch */ color: oklch(40.1% 0.159 270.3);
Tailwind
colors: {
  custom: {
    50: '#7470ba',
    500: '#2a3a9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a9c;
$custom-light: #7470ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a9c",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 156
  },
  "hsl": {
    "h": 231.579,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40087,
    "c": 0.15949,
    "h": 270.3
  },
  "luminance": 0.05919
}

Semantic roles & 50–950 ramp

primary
#2A3A9C
secondary
#BDB165
accent
#CB47E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #2A3A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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