#262298#262298

#262298 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.182 H 273.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#262298
RGBrgb(38, 34, 152)
HSLhsl(242, 63%, 36%)
HSVhsv(242, 78%, 60%)
CMYKcmyk(75%, 77.6%, 0%, 40.4%)
CIE-LABlab(23.08, 41.52, -62.87)
CIE-LCHlch(23.08, 75.34, 303.44°)
OKLaboklab(35.48% 0.011 -0.1819)
OKLCHoklch(35.48% 0.182 273.4)
XYZxyz(7.0370, 3.8224, 30.0666)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262298 #949822
analogous
#225998 #262298 #612298
triadic
#262298 #982622 #229826
tetradic
#262298 #982259 #949822 #229861
square
#262298 #982259 #949822 #229861
split-complementary
#262298 #986122 #599822
monochromatic
#0D0C34 #191766 #262298 #332DCA #5F5ADA

Accessibility & contrast

On white

11.90
#262298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#262298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262298
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262298#FFFFFF#000000##FFFFFF
##2622981.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #262298;
/* rgb */ color: rgb(38, 34, 152);
/* oklch */ color: oklch(35.5% 0.182 273.4);
Tailwind
colors: {
  custom: {
    50: '#745fb8',
    500: '#262298',
    950: '#000000',
  },
}
SCSS
$custom: #262298;
$custom-light: #745fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#262298",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 242.034,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35477,
    "c": 0.18222,
    "h": 273.4
  },
  "luminance": 0.03823
}

Semantic roles & 50–950 ramp

primary
#262298
secondary
#BBBE57
accent
#E641E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #262298

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

Preview Lab → · Contrast checker → · Palette generator →

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