#262152#262152

#262152 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.086 H 284.1°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#262152
RGBrgb(38, 33, 82)
HSLhsl(246, 43%, 23%)
HSVhsv(246, 60%, 32%)
CMYKcmyk(53.7%, 59.8%, 0%, 67.8%)
CIE-LABlab(16.05, 17.48, -29.33)
CIE-LCHlch(16.05, 34.15, 300.80°)
OKLaboklab(28.34% 0.021 -0.0837)
OKLCHoklch(28.34% 0.086 284.1)
XYZxyz(2.8657, 2.1088, 8.2371)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262152 #4D5221
analogous
#213552 #262152 #3E2152
triadic
#262152 #522621 #215226
tetradic
#262152 #522135 #4D5221 #21523E
square
#262152 #522135 #4D5221 #21523E
split-complementary
#262152 #523E21 #355221
monochromatic
#0A0916 #120F26 #262152 #3A337E #4E44A9

Accessibility & contrast

On white

14.77
#262152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#262152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262152
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262152#FFFFFF#000000##FFFFFF
##2621521.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062954
Deuteranopia (green-blind)
#032651
Tritanopia (blue-blind)
#162C36
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #262152;
/* rgb */ color: rgb(38, 33, 82);
/* oklch */ color: oklch(28.3% 0.086 284.1);
Tailwind
colors: {
  custom: {
    50: '#645c83',
    500: '#262152',
    950: '#000000',
  },
}
SCSS
$custom: #262152;
$custom-light: #645c83;
$custom-dark: #000000;
JSON
{
  "hex": "#262152",
  "rgb": {
    "r": 38,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 246.122,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28339,
    "c": 0.08631,
    "h": 284.1
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#262152
secondary
#808649
accent
#D255C6
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #262152

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

Preview Lab → · Contrast checker → · Palette generator →

#262152 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva