#262397#262397

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

Color values

HEX#262397
RGBrgb(38, 35, 151)
HSLhsl(242, 62%, 36%)
HSVhsv(242, 77%, 59%)
CMYKcmyk(74.8%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.16, 40.63, -62.11)
CIE-LCHlch(23.16, 74.22, 303.19°)
OKLaboklab(35.5% 0.0107 -0.1797)
OKLCHoklch(35.5% 0.18 273.4)
XYZxyz(6.9844, 3.8478, 29.6468)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262397 #949723
analogous
#235A97 #262397 #602397
triadic
#262397 #972623 #239726
tetradic
#262397 #97235A #949723 #239760
square
#262397 #97235A #949723 #239760
split-complementary
#262397 #976023 #5A9723
monochromatic
#0D0C34 #191765 #262397 #332FC9 #5F5BD9

Accessibility & contrast

On white

11.87
#262397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#262397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262397
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262397#FFFFFF#000000##FFFFFF
##2623971.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #262397;
/* rgb */ color: rgb(38, 35, 151);
/* oklch */ color: oklch(35.5% 0.180 273.4);
Tailwind
colors: {
  custom: {
    50: '#7460b7',
    500: '#262397',
    950: '#000000',
  },
}
SCSS
$custom: #262397;
$custom-light: #7460b7;
$custom-dark: #000000;
JSON
{
  "hex": "#262397",
  "rgb": {
    "r": 38,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 241.552,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35505,
    "c": 0.18002,
    "h": 273.4
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#262397
secondary
#BBBE58
accent
#E542E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #262397

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

Preview Lab → · Contrast checker → · Palette generator →

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