#262197#262197

#262197 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.182 H 273.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#262197
RGBrgb(38, 33, 151)
HSLhsl(243, 64%, 36%)
HSVhsv(243, 78%, 59%)
CMYKcmyk(74.8%, 78.1%, 0%, 40.8%)
CIE-LABlab(22.77, 41.74, -62.76)
CIE-LCHlch(22.77, 75.37, 303.63°)
OKLaboklab(35.23% 0.0116 -0.1816)
OKLCHoklch(35.23% 0.182 273.7)
XYZxyz(6.9272, 3.7334, 29.6277)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262197 #929721
analogous
#215797 #262197 #612197
triadic
#262197 #972621 #219726
tetradic
#262197 #972157 #929721 #219761
square
#262197 #972157 #929721 #219761
split-complementary
#262197 #976121 #579721
monochromatic
#0D0B33 #191665 #262197 #332CC9 #5D58DA

Accessibility & contrast

On white

12.02
#262197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#262197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262197
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262197#FFFFFF#000000##FFFFFF
##2621971.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #262197;
/* rgb */ color: rgb(38, 33, 151);
/* oklch */ color: oklch(35.2% 0.182 273.7);
Tailwind
colors: {
  custom: {
    50: '#745fb7',
    500: '#262197',
    950: '#000000',
  },
}
SCSS
$custom: #262197;
$custom-light: #745fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#262197",
  "rgb": {
    "r": 38,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 242.542,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35229,
    "c": 0.18193,
    "h": 273.7
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#262197
secondary
#BABE55
accent
#E741E0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #262197

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

Preview Lab → · Contrast checker → · Palette generator →

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