#2A267A#2A267A

#2A267A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.138 H 277.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2A267A
RGBrgb(42, 38, 122)
HSLhsl(243, 53%, 31%)
HSVhsv(243, 69%, 48%)
CMYKcmyk(65.6%, 68.9%, 0%, 52.2%)
CIE-LABlab(21.14, 29.22, -47.27)
CIE-LCHlch(21.14, 55.57, 301.72°)
OKLaboklab(33.24% 0.019 -0.1363)
OKLCHoklch(33.24% 0.138 277.9)
XYZxyz(5.1597, 3.2832, 18.7704)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A267A #767A26
analogous
#264C7A #2A267A #54267A
triadic
#2A267A #7A2A26 #267A2A
tetradic
#2A267A #7A264C #767A26 #267A54
square
#2A267A #7A264C #767A26 #267A54
split-complementary
#2A267A #7A5426 #4C7A26
monochromatic
#0A091D #1A174B #2A267A #3A35A9 #5751C9

Accessibility & contrast

On white

12.68
#2A267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A267A
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A267A#FFFFFF#000000##FFFFFF
##2A267A1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a267a;
/* rgb */ color: rgb(42, 38, 122);
/* oklch */ color: oklch(33.2% 0.138 277.9);
Tailwind
colors: {
  custom: {
    50: '#6e61a1',
    500: '#2a267a',
    950: '#000000',
  },
}
SCSS
$custom: #2a267a;
$custom-light: #6e61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a267a",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 242.857,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33243,
    "c": 0.13759,
    "h": 277.9
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#2A267A
secondary
#A8AC50
accent
#DC4CD5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A267A

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

Preview Lab → · Contrast checker → · Palette generator →

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