#262147#262147

#262147 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.068 H 287.0°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#262147
RGBrgb(38, 33, 71)
HSLhsl(248, 37%, 20%)
HSVhsv(248, 54%, 28%)
CMYKcmyk(46.5%, 53.5%, 0%, 72.2%)
CIE-LABlab(15.25, 13.62, -23.10)
CIE-LCHlch(15.25, 26.81, 300.52°)
OKLaboklab(27.48% 0.02 -0.0654)
OKLCHoklch(27.48% 0.068 287)
XYZxyz(2.4802, 1.9546, 6.2066)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262147 #424721
analogous
#212F47 #262147 #392147
triadic
#262147 #472621 #214726
tetradic
#262147 #47212F #424721 #214739
square
#262147 #47212F #424721 #214739
split-complementary
#262147 #473921 #2F4721
monochromatic
#0B0A15 #100E1D #262147 #3C3471 #53489B

Accessibility & contrast

On white

15.10
#262147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#262147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262147
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262147#FFFFFF#000000##FFFFFF
##2621471.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122748
Deuteranopia (green-blind)
#122546
Tritanopia (blue-blind)
#1C2930
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #262147;
/* rgb */ color: rgb(38, 33, 71);
/* oklch */ color: oklch(27.5% 0.068 287.0);
Tailwind
colors: {
  custom: {
    50: '#625c7a',
    500: '#262147',
    950: '#000000',
  },
}
SCSS
$custom: #262147;
$custom-light: #625c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#262147",
  "rgb": {
    "r": 38,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 247.895,
    "s": 36.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27482,
    "c": 0.06841,
    "h": 287
  },
  "luminance": 0.01955
}

Semantic roles & 50–950 ramp

primary
#262147
secondary
#747B49
accent
#CD5BBE
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050409
muted
#79797B

Preview Lab

Preview with #262147

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

Preview Lab → · Contrast checker → · Palette generator →

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