#21265B#21265B

#21265B is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.7% C 0.094 H 275.1°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#21265B
RGBrgb(33, 38, 91)
HSLhsl(235, 47%, 24%)
HSVhsv(235, 64%, 36%)
CMYKcmyk(63.7%, 58.2%, 0%, 64.3%)
CIE-LABlab(17.76, 16.08, -32.64)
CIE-LCHlch(17.76, 36.38, 296.23°)
OKLaboklab(29.73% 0.0083 -0.0935)
OKLCHoklch(29.73% 0.094 275.1)
XYZxyz(3.2080, 2.4646, 10.2022)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21265B #5B5621
analogous
#21435B #21265B #39215B
triadic
#21265B #5B2126 #265B21
tetradic
#21265B #5B2143 #5B5621 #215B39
square
#21265B #5B2143 #5B5621 #215B39
split-complementary
#21265B #5B3921 #435B21
monochromatic
#080916 #11132E #21265B #313988 #424CB5

Accessibility & contrast

On white

14.07
#21265B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#21265B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21265B
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21265B#FFFFFF#000000##FFFFFF
##21265B1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21265b;
/* rgb */ color: rgb(33, 38, 91);
/* oklch */ color: oklch(29.7% 0.094 275.1);
Tailwind
colors: {
  custom: {
    50: '#63608a',
    500: '#21265b',
    950: '#000000',
  },
}
SCSS
$custom: #21265b;
$custom-light: #63608a;
$custom-dark: #000000;
JSON
{
  "hex": "#21265b",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 91
  },
  "hsl": {
    "h": 234.828,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.2973,
    "c": 0.09392,
    "h": 275.1
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#21265B
secondary
#8F8949
accent
#CB51D6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21265B

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

Preview Lab → · Contrast checker → · Palette generator →

#21265B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva