#262198#262198

#262198 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.183 H 273.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#262198
RGBrgb(38, 33, 152)
HSLhsl(243, 64%, 36%)
HSVhsv(243, 78%, 60%)
CMYKcmyk(75%, 78.3%, 0%, 40.4%)
CIE-LABlab(22.88, 42.07, -63.19)
CIE-LCHlch(22.88, 75.91, 303.66°)
OKLaboklab(35.34% 0.0114 -0.1828)
OKLCHoklch(35.34% 0.183 273.6)
XYZxyz(7.0088, 3.7661, 30.0572)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262198 #939821
analogous
#215898 #262198 #622198
triadic
#262198 #982621 #219826
tetradic
#262198 #982158 #939821 #219862
square
#262198 #982158 #939821 #219862
split-complementary
#262198 #986221 #589821
monochromatic
#0D0B33 #191666 #262198 #332CCA #5E59DB

Accessibility & contrast

On white

11.98
#262198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #262198
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262198#FFFFFF#000000##FFFFFF
##2621981.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #262198;
/* rgb */ color: rgb(38, 33, 152);
/* oklch */ color: oklch(35.3% 0.183 273.6);
Tailwind
colors: {
  custom: {
    50: '#745fb8',
    500: '#262198',
    950: '#000000',
  },
}
SCSS
$custom: #262198;
$custom-light: #745fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#262198",
  "rgb": {
    "r": 38,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 242.521,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35341,
    "c": 0.18316,
    "h": 273.6
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#262198
secondary
#BABF56
accent
#E740E0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #262198

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

Preview Lab → · Contrast checker → · Palette generator →

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