#2A338F#2A338F

#2A338F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.150 H 272.5°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2A338F
RGBrgb(42, 51, 143)
HSLhsl(235, 55%, 36%)
HSVhsv(235, 71%, 56%)
CMYKcmyk(70.6%, 64.3%, 0%, 43.9%)
CIE-LABlab(26.28, 28.28, -52.04)
CIE-LCHlch(26.28, 59.23, 298.52°)
OKLaboklab(37.58% 0.0066 -0.1502)
OKLCHoklch(37.58% 0.15 272.5)
XYZxyz(7.0949, 4.8424, 26.5420)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A338F #8F862A
analogous
#2A668F #2A338F #542A8F
triadic
#2A338F #8F2A33 #338F2A
tetradic
#2A338F #8F2A66 #8F862A #2A8F54
square
#2A338F #8F2A66 #8F862A #2A8F54
split-complementary
#2A338F #8F542A #668F2A
monochromatic
#0E1130 #1C2260 #2A338F #3844BE #626CD1

Accessibility & contrast

On white

10.67
#2A338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A338F
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A338F#FFFFFF#000000##FFFFFF
##2A338F1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a338f;
/* rgb */ color: rgb(42, 51, 143);
/* oklch */ color: oklch(37.6% 0.150 272.5);
Tailwind
colors: {
  custom: {
    50: '#726ab1',
    500: '#2a338f',
    950: '#000000',
  },
}
SCSS
$custom: #2a338f;
$custom-light: #726ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a338f",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 234.653,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37582,
    "c": 0.15033,
    "h": 272.5
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#2A338F
secondary
#B7AF5E
accent
#D14ADE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A338F

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

Preview Lab → · Contrast checker → · Palette generator →

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