#262A8A#262A8A

#262A8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.156 H 273.3°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#262A8A
RGBrgb(38, 42, 138)
HSLhsl(238, 57%, 35%)
HSVhsv(238, 72%, 54%)
CMYKcmyk(72.5%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.35, 31.82, -53.75)
CIE-LCHlch(23.35, 62.46, 300.63°)
OKLaboklab(35.23% 0.0089 -0.1554)
OKLCHoklch(35.23% 0.156 273.3)
XYZxyz(6.2132, 3.9024, 24.4656)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A8A #8A8626
analogous
#265C8A #262A8A #54268A
triadic
#262A8A #8A262A #2A8A26
tetradic
#262A8A #8A265C #8A8626 #268A54
square
#262A8A #8A265C #8A8626 #268A54
split-complementary
#262A8A #8A5426 #5C8A26
monochromatic
#0C0D2A #191B5A #262A8A #3339BA #595ED1

Accessibility & contrast

On white

11.79
#262A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#262A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A8A
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A8A#FFFFFF#000000##FFFFFF
##262A8A1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #262a8a;
/* rgb */ color: rgb(38, 42, 138);
/* oklch */ color: oklch(35.2% 0.156 273.3);
Tailwind
colors: {
  custom: {
    50: '#7064ad',
    500: '#262a8a',
    950: '#000000',
  },
}
SCSS
$custom: #262a8a;
$custom-light: #7064ad;
$custom-dark: #000000;
JSON
{
  "hex": "#262a8a",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 237.6,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35232,
    "c": 0.15561,
    "h": 273.3
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#262A8A
secondary
#B6B256
accent
#DA48E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #262A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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