#262154#262154

#262154 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.089 H 283.6°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#262154
RGBrgb(38, 33, 84)
HSLhsl(246, 44%, 23%)
HSVhsv(246, 61%, 33%)
CMYKcmyk(54.8%, 60.7%, 0%, 67.1%)
CIE-LABlab(16.20, 18.20, -30.43)
CIE-LCHlch(16.20, 35.46, 300.88°)
OKLaboklab(28.5% 0.021 -0.087)
OKLCHoklch(28.5% 0.089 283.6)
XYZxyz(2.9429, 2.1397, 8.6437)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262154 #4F5421
analogous
#213554 #262154 #3F2154
triadic
#262154 #542621 #215426
tetradic
#262154 #542135 #4F5421 #21543F
square
#262154 #542135 #4F5421 #21543F
split-complementary
#262154 #543F21 #355421
monochromatic
#0A0916 #121028 #262154 #3A3280 #4E44AC

Accessibility & contrast

On white

14.71
#262154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#262154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262154
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262154#FFFFFF#000000##FFFFFF
##2621541.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032A56
Deuteranopia (green-blind)
#002753
Tritanopia (blue-blind)
#152D37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #262154;
/* rgb */ color: rgb(38, 33, 84);
/* oklch */ color: oklch(28.5% 0.089 283.6);
Tailwind
colors: {
  custom: {
    50: '#655c84',
    500: '#262154',
    950: '#000000',
  },
}
SCSS
$custom: #262154;
$custom-light: #655c84;
$custom-dark: #000000;
JSON
{
  "hex": "#262154",
  "rgb": {
    "r": 38,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 245.882,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28504,
    "c": 0.08946,
    "h": 283.6
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#262154
secondary
#828849
accent
#D354C7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #262154

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

Preview Lab → · Contrast checker → · Palette generator →

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