#2A268F#2A268F

#2A268F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.166 H 275.5°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#2A268F
RGBrgb(42, 38, 143)
HSLhsl(242, 58%, 35%)
HSVhsv(242, 73%, 56%)
CMYKcmyk(70.6%, 73.4%, 0%, 43.9%)
CIE-LABlab(23.21, 36.56, -57.08)
CIE-LCHlch(23.21, 67.79, 302.64°)
OKLaboklab(35.35% 0.0158 -0.165)
OKLCHoklch(35.35% 0.166 275.5)
XYZxyz(6.6043, 3.8610, 26.3785)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A268F #8B8F26
analogous
#26568F #2A268F #5E268F
triadic
#2A268F #8F2A26 #268F2A
tetradic
#2A268F #8F2656 #8B8F26 #268F5E
square
#2A268F #8F2656 #8B8F26 #268F5E
split-complementary
#2A268F #8F5E26 #568F26
monochromatic
#0E0C2E #1C195F #2A268F #3833BF #605CD4

Accessibility & contrast

On white

11.85
#2A268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A268F
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A268F#FFFFFF#000000##FFFFFF
##2A268F1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a268f;
/* rgb */ color: rgb(42, 38, 143);
/* oklch */ color: oklch(35.4% 0.166 275.5);
Tailwind
colors: {
  custom: {
    50: '#7361b1',
    500: '#2a268f',
    950: '#000000',
  },
}
SCSS
$custom: #2a268f;
$custom-light: #7361b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a268f",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 242.286,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35354,
    "c": 0.16572,
    "h": 275.5
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#2A268F
secondary
#B5B958
accent
#E147DB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A268F

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

Preview Lab → · Contrast checker → · Palette generator →

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