#2A338E#2A338E

#2A338E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.149 H 272.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2A338E
RGBrgb(42, 51, 142)
HSLhsl(235, 54%, 36%)
HSVhsv(235, 70%, 56%)
CMYKcmyk(70.4%, 64.1%, 0%, 44.3%)
CIE-LABlab(26.19, 27.91, -51.56)
CIE-LCHlch(26.19, 58.63, 298.43°)
OKLaboklab(37.49% 0.0066 -0.1488)
OKLCHoklch(37.49% 0.149 272.6)
XYZxyz(7.0195, 4.8122, 26.1449)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A338E #8E852A
analogous
#2A658E #2A338E #532A8E
triadic
#2A338E #8E2A33 #338E2A
tetradic
#2A338E #8E2A65 #8E852A #2A8E53
square
#2A338E #8E2A65 #8E852A #2A8E53
split-complementary
#2A338E #8E532A #658E2A
monochromatic
#0E1130 #1C225F #2A338E #3844BD #626CD1

Accessibility & contrast

On white

10.70
#2A338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A338E
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A338E#FFFFFF#000000##FFFFFF
##2A338E1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a338e;
/* rgb */ color: rgb(42, 51, 142);
/* oklch */ color: oklch(37.5% 0.149 272.6);
Tailwind
colors: {
  custom: {
    50: '#716ab0',
    500: '#2a338e',
    950: '#000000',
  },
}
SCSS
$custom: #2a338e;
$custom-light: #716ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a338e",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 234.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3749,
    "c": 0.14895,
    "h": 272.6
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#2A338E
secondary
#B6AE5D
accent
#D04ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A338E

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

Preview Lab → · Contrast checker → · Palette generator →

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