#2A206B#2A206B

#2A206B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.124 H 282.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2A206B
RGBrgb(42, 32, 107)
HSLhsl(248, 54%, 27%)
HSVhsv(248, 70%, 42%)
CMYKcmyk(60.7%, 70.1%, 0%, 58%)
CIE-LABlab(18.31, 27.83, -42.25)
CIE-LCHlch(18.31, 50.59, 303.38°)
OKLaboklab(30.76% 0.0265 -0.1216)
OKLCHoklch(30.76% 0.124 282.3)
XYZxyz(4.1244, 2.5865, 14.1890)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A206B #616B20
analogous
#203C6B #2A206B #50206B
triadic
#2A206B #6B2A20 #206B2A
tetradic
#2A206B #6B203C #616B20 #206B50
square
#2A206B #6B203C #616B20 #206B50
split-complementary
#2A206B #6B5020 #3C6B20
monochromatic
#090718 #18123C #2A206B #3C2E9A #5240C6

Accessibility & contrast

On white

13.84
#2A206B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A206B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A206B
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A206B#FFFFFF#000000##FFFFFF
##2A206B1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#063342
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a206b;
/* rgb */ color: rgb(42, 32, 107);
/* oklch */ color: oklch(30.8% 0.124 282.3);
Tailwind
colors: {
  custom: {
    50: '#6b5c96',
    500: '#2a206b',
    950: '#000000',
  },
}
SCSS
$custom: #2a206b;
$custom-light: #6b5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#2a206b",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 107
  },
  "hsl": {
    "h": 248,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30757,
    "c": 0.12441,
    "h": 282.3
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#2A206B
secondary
#939F48
accent
#DD4ACA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A206B

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

Preview Lab → · Contrast checker → · Palette generator →

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