#262A8C#262A8C

#262A8C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.158 H 273.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#262A8C
RGBrgb(38, 42, 140)
HSLhsl(238, 57%, 35%)
HSVhsv(238, 73%, 55%)
CMYKcmyk(72.9%, 70%, 0%, 45.1%)
CIE-LABlab(23.54, 32.55, -54.68)
CIE-LCHlch(23.54, 63.63, 300.76°)
OKLaboklab(35.43% 0.0086 -0.1581)
OKLCHoklch(35.43% 0.158 273.1)
XYZxyz(6.3593, 3.9608, 25.2352)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A8C #8C8826
analogous
#265D8C #262A8C #55268C
triadic
#262A8C #8C262A #2A8C26
tetradic
#262A8C #8C265D #8C8826 #268C55
square
#262A8C #8C265D #8C8826 #268C55
split-complementary
#262A8C #8C5526 #5D8C26
monochromatic
#0C0D2C #191C5C #262A8C #3338BC #5A5FD2

Accessibility & contrast

On white

11.72
#262A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#262A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A8C
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A8C#FFFFFF#000000##FFFFFF
##262A8C1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #262a8c;
/* rgb */ color: rgb(38, 42, 140);
/* oklch */ color: oklch(35.4% 0.158 273.1);
Tailwind
colors: {
  custom: {
    50: '#7064af',
    500: '#262a8c',
    950: '#000000',
  },
}
SCSS
$custom: #262a8c;
$custom-light: #7064af;
$custom-dark: #000000;
JSON
{
  "hex": "#262a8c",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 140
  },
  "hsl": {
    "h": 237.647,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.1583,
    "h": 273.1
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#262A8C
secondary
#B7B357
accent
#DB47E1
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #262A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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