#262291#262291

#262291 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.173 H 274.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#262291
RGBrgb(38, 34, 145)
HSLhsl(242, 62%, 35%)
HSVhsv(242, 77%, 57%)
CMYKcmyk(73.8%, 76.6%, 0%, 43.1%)
CIE-LABlab(22.30, 39.17, -59.82)
CIE-LCHlch(22.30, 71.51, 303.22°)
OKLaboklab(34.7% 0.0124 -0.173)
OKLCHoklch(34.7% 0.173 274.1)
XYZxyz(6.4805, 3.5998, 27.1359)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262291 #8D9122
analogous
#225691 #262291 #5D2291
triadic
#262291 #912622 #229126
tetradic
#262291 #912256 #8D9122 #22915D
square
#262291 #912256 #8D9122 #22915D
split-complementary
#262291 #915D22 #569122
monochromatic
#0C0B2E #19165F #262291 #332EC3 #5B56D7

Accessibility & contrast

On white

12.21
#262291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#262291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262291
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262291#FFFFFF#000000##FFFFFF
##2622911.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #262291;
/* rgb */ color: rgb(38, 34, 145);
/* oklch */ color: oklch(34.7% 0.173 274.1);
Tailwind
colors: {
  custom: {
    50: '#725fb2',
    500: '#262291',
    950: '#000000',
  },
}
SCSS
$custom: #262291;
$custom-light: #725fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#262291",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 242.162,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34702,
    "c": 0.17349,
    "h": 274.1
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#262291
secondary
#B8BB53
accent
#E543DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #262291

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

Preview Lab → · Contrast checker → · Palette generator →

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