#2A338D#2A338D

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

Color values

HEX#2A338D
RGBrgb(42, 51, 141)
HSLhsl(235, 54%, 36%)
HSVhsv(235, 70%, 55%)
CMYKcmyk(70.2%, 63.8%, 0%, 44.7%)
CIE-LABlab(26.11, 27.54, -51.09)
CIE-LCHlch(26.11, 58.04, 298.33°)
OKLaboklab(37.4% 0.0067 -0.1474)
OKLCHoklch(37.4% 0.148 272.6)
XYZxyz(6.9448, 4.7823, 25.7512)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A338D #8D842A
analogous
#2A648D #2A338D #522A8D
triadic
#2A338D #8D2A33 #338D2A
tetradic
#2A338D #8D2A64 #8D842A #2A8D52
square
#2A338D #8D2A64 #8D842A #2A8D52
split-complementary
#2A338D #8D522A #648D2A
monochromatic
#0E112F #1C225E #2A338D #3844BC #616BD0

Accessibility & contrast

On white

10.73
#2A338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A338D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A338D#FFFFFF#000000##FFFFFF
##2A338D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a338d;
/* rgb */ color: rgb(42, 51, 141);
/* oklch */ color: oklch(37.4% 0.148 272.6);
Tailwind
colors: {
  custom: {
    50: '#716aaf',
    500: '#2a338d',
    950: '#000000',
  },
}
SCSS
$custom: #2a338d;
$custom-light: #716aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a338d",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 234.545,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37399,
    "c": 0.14755,
    "h": 272.6
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#2A338D
secondary
#B6AE5D
accent
#D04ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A338D

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

Preview Lab → · Contrast checker → · Palette generator →

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