#262A7E#262A7E

#262A7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.139 H 274.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#262A7E
RGBrgb(38, 42, 126)
HSLhsl(237, 54%, 32%)
HSVhsv(237, 70%, 49%)
CMYKcmyk(69.8%, 66.7%, 0%, 50.6%)
CIE-LABlab(22.21, 27.42, -48.08)
CIE-LCHlch(22.21, 55.35, 299.70°)
OKLaboklab(34.06% 0.0101 -0.1387)
OKLCHoklch(34.06% 0.139 274.2)
XYZxyz(5.3919, 3.5739, 20.1403)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A7E #7E7A26
analogous
#26567E #262A7E #4E267E
triadic
#262A7E #7E262A #2A7E26
tetradic
#262A7E #7E2656 #7E7A26 #267E4E
square
#262A7E #7E2656 #7E7A26 #267E4E
split-complementary
#262A7E #7E4E26 #567E26
monochromatic
#0A0B20 #181A4F #262A7E #343AAD #5359CB

Accessibility & contrast

On white

12.25
#262A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#262A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A7E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A7E#FFFFFF#000000##FFFFFF
##262A7E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #262a7e;
/* rgb */ color: rgb(38, 42, 126);
/* oklch */ color: oklch(34.1% 0.139 274.2);
Tailwind
colors: {
  custom: {
    50: '#6d63a4',
    500: '#262a7e',
    950: '#000000',
  },
}
SCSS
$custom: #262a7e;
$custom-light: #6d63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#262a7e",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 237.273,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34056,
    "c": 0.1391,
    "h": 274.2
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#262A7E
secondary
#B0AB50
accent
#D64BDD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #262A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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