#2A268B#2A268B

#2A268B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.161 H 275.9°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2A268B
RGBrgb(42, 38, 139)
HSLhsl(242, 57%, 35%)
HSVhsv(242, 73%, 55%)
CMYKcmyk(69.8%, 72.7%, 0%, 45.5%)
CIE-LABlab(22.80, 35.18, -55.26)
CIE-LCHlch(22.80, 65.51, 302.48°)
OKLaboklab(34.94% 0.0165 -0.1597)
OKLCHoklch(34.94% 0.161 275.9)
XYZxyz(6.3066, 3.7420, 24.8110)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A268B #878B26
analogous
#26558B #2A268B #5C268B
triadic
#2A268B #8B2A26 #268B2A
tetradic
#2A268B #8B2655 #878B26 #268B5C
square
#2A268B #8B2655 #878B26 #268B5C
split-complementary
#2A268B #8B5C26 #558B26
monochromatic
#0D0C2B #1B195B #2A268B #3933BB #5E5AD2

Accessibility & contrast

On white

12.01
#2A268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A268B
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A268B#FFFFFF#000000##FFFFFF
##2A268B1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a268b;
/* rgb */ color: rgb(42, 38, 139);
/* oklch */ color: oklch(34.9% 0.161 275.9);
Tailwind
colors: {
  custom: {
    50: '#7261ae',
    500: '#2a268b',
    950: '#000000',
  },
}
SCSS
$custom: #2a268b;
$custom-light: #7261ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a268b",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 242.376,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3494,
    "c": 0.16052,
    "h": 275.9
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#2A268B
secondary
#B3B756
accent
#E047DA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A268B

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

Preview Lab → · Contrast checker → · Palette generator →

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