#262157#262157

#262157 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.8% C 0.094 H 282.9°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#262157
RGBrgb(38, 33, 87)
HSLhsl(246, 45%, 24%)
HSVhsv(246, 62%, 34%)
CMYKcmyk(56.3%, 62.1%, 0%, 65.9%)
CIE-LABlab(16.44, 19.27, -32.07)
CIE-LCHlch(16.44, 37.41, 301.01°)
OKLaboklab(28.76% 0.0211 -0.0918)
OKLCHoklch(28.76% 0.094 282.9)
XYZxyz(3.0630, 2.1877, 9.2759)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262157 #525721
analogous
#213757 #262157 #412157
triadic
#262157 #572621 #215726
tetradic
#262157 #572137 #525721 #215741
square
#262157 #572137 #525721 #215741
split-complementary
#262157 #574121 #375721
monochromatic
#0A0816 #13102B #262157 #393283 #4D43B0

Accessibility & contrast

On white

14.61
#262157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#262157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262157
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262157#FFFFFF#000000##FFFFFF
##2621571.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#122D38
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #262157;
/* rgb */ color: rgb(38, 33, 87);
/* oklch */ color: oklch(28.8% 0.094 282.9);
Tailwind
colors: {
  custom: {
    50: '#655c87',
    500: '#262157',
    950: '#000000',
  },
}
SCSS
$custom: #262157;
$custom-light: #655c87;
$custom-dark: #000000;
JSON
{
  "hex": "#262157",
  "rgb": {
    "r": 38,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 245.556,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28757,
    "c": 0.09414,
    "h": 282.9
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

primary
#262157
secondary
#858B49
accent
#D553C9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #262157

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

Preview Lab → · Contrast checker → · Palette generator →

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