#2A338B#2A338B

#2A338B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.145 H 272.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#2A338B
RGBrgb(42, 51, 139)
HSLhsl(234, 54%, 35%)
HSVhsv(234, 70%, 55%)
CMYKcmyk(69.8%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.93, 26.80, -50.13)
CIE-LCHlch(25.93, 56.85, 298.13°)
OKLaboklab(37.22% 0.0068 -0.1446)
OKLCHoklch(37.22% 0.145 272.7)
XYZxyz(6.7973, 4.7233, 24.9746)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A338B #8B822A
analogous
#2A638B #2A338B #512A8B
triadic
#2A338B #8B2A33 #338B2A
tetradic
#2A338B #8B2A63 #8B822A #2A8B51
square
#2A338B #8B2A63 #8B822A #2A8B51
split-complementary
#2A338B #8B512A #638B2A
monochromatic
#0E112D #1C225C #2A338B #3844BA #606BCF

Accessibility & contrast

On white

10.80
#2A338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A338B
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A338B#FFFFFF#000000##FFFFFF
##2A338B1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a338b;
/* rgb */ color: rgb(42, 51, 139);
/* oklch */ color: oklch(37.2% 0.145 272.7);
Tailwind
colors: {
  custom: {
    50: '#716aae',
    500: '#2a338b',
    950: '#000000',
  },
}
SCSS
$custom: #2a338b;
$custom-light: #716aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a338b",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 234.433,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37217,
    "c": 0.14475,
    "h": 272.7
  },
  "luminance": 0.04724
}

Semantic roles & 50–950 ramp

primary
#2A338B
secondary
#B5AD5C
accent
#CF4BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A338B

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

Preview Lab → · Contrast checker → · Palette generator →

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