#262A87#262A87

#262A87 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.152 H 273.5°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#262A87
RGBrgb(38, 42, 135)
HSLhsl(238, 56%, 34%)
HSVhsv(238, 72%, 53%)
CMYKcmyk(71.9%, 68.9%, 0%, 47.1%)
CIE-LABlab(23.06, 30.73, -52.35)
CIE-LCHlch(23.06, 60.71, 300.41°)
OKLaboklab(34.93% 0.0092 -0.1513)
OKLCHoklch(34.93% 0.152 273.5)
XYZxyz(5.9990, 3.8167, 23.3375)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A87 #878326
analogous
#265B87 #262A87 #532687
triadic
#262A87 #87262A #2A8726
tetradic
#262A87 #87265B #878326 #268753
square
#262A87 #87265B #878326 #268753
split-complementary
#262A87 #875326 #5B8726
monochromatic
#0B0C27 #191B57 #262A87 #3339B7 #585DD0

Accessibility & contrast

On white

11.91
#262A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#262A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A87
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A87#FFFFFF#000000##FFFFFF
##262A871.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #262a87;
/* rgb */ color: rgb(38, 42, 135);
/* oklch */ color: oklch(34.9% 0.152 273.5);
Tailwind
colors: {
  custom: {
    50: '#6f64ab',
    500: '#262a87',
    950: '#000000',
  },
}
SCSS
$custom: #262a87;
$custom-light: #6f64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#262a87",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 237.526,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34933,
    "c": 0.15155,
    "h": 273.5
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#262A87
secondary
#B5B154
accent
#D948DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #262A87

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

Preview Lab → · Contrast checker → · Palette generator →

#262A87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva