#262172#262172

#262172 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.134 H 278.1°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#262172
RGBrgb(38, 33, 114)
HSLhsl(244, 55%, 29%)
HSVhsv(244, 71%, 45%)
CMYKcmyk(66.7%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.86, 28.99, -45.89)
CIE-LCHlch(18.86, 54.28, 302.28°)
OKLaboklab(31.28% 0.0188 -0.1324)
OKLCHoklch(31.28% 0.134 278.1)
XYZxyz(4.3795, 2.7143, 16.2095)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262172 #6D7221
analogous
#214572 #262172 #4F2172
triadic
#262172 #722621 #217226
tetradic
#262172 #722145 #6D7221 #21724F
square
#262172 #722145 #6D7221 #21724F
split-complementary
#262172 #724F21 #457221
monochromatic
#080718 #161343 #262172 #362FA1 #4D44C9

Accessibility & contrast

On white

13.61
#262172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#262172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262172
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262172#FFFFFF#000000##FFFFFF
##2621721.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #262172;
/* rgb */ color: rgb(38, 33, 114);
/* oklch */ color: oklch(31.3% 0.134 278.1);
Tailwind
colors: {
  custom: {
    50: '#6b5d9b',
    500: '#262172',
    950: '#000000',
  },
}
SCSS
$custom: #262172;
$custom-light: #6b5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#262172",
  "rgb": {
    "r": 38,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 243.704,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31276,
    "c": 0.1337,
    "h": 278.1
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#262172
secondary
#A0A549
accent
#DE49D5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #262172

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

Preview Lab → · Contrast checker → · Palette generator →

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