#262297#262297

#262297 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.181 H 273.5°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#262297
RGBrgb(38, 34, 151)
HSLhsl(242, 63%, 36%)
HSVhsv(242, 77%, 59%)
CMYKcmyk(74.8%, 77.5%, 0%, 40.8%)
CIE-LABlab(22.96, 41.19, -62.44)
CIE-LCHlch(22.96, 74.80, 303.41°)
OKLaboklab(35.37% 0.0112 -0.1806)
OKLCHoklch(35.37% 0.181 273.5)
XYZxyz(6.9554, 3.7898, 29.6371)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262297 #939722
analogous
#225997 #262297 #612297
triadic
#262297 #972622 #229726
tetradic
#262297 #972259 #939722 #229761
square
#262297 #972259 #939722 #229761
split-complementary
#262297 #976122 #599722
monochromatic
#0D0C33 #191765 #262297 #332DC9 #5E5ADA

Accessibility & contrast

On white

11.95
#262297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #262297
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262297#FFFFFF#000000##FFFFFF
##2622971.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #262297;
/* rgb */ color: rgb(38, 34, 151);
/* oklch */ color: oklch(35.4% 0.181 273.5);
Tailwind
colors: {
  custom: {
    50: '#745fb7',
    500: '#262297',
    950: '#000000',
  },
}
SCSS
$custom: #262297;
$custom-light: #745fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#262297",
  "rgb": {
    "r": 38,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 242.051,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35365,
    "c": 0.18098,
    "h": 273.5
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#262297
secondary
#BABE57
accent
#E642E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #262297

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

Preview Lab → · Contrast checker → · Palette generator →

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