#262A7D#262A7D

#262A7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.138 H 274.2°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#262A7D
RGBrgb(38, 42, 125)
HSLhsl(237, 53%, 32%)
HSVhsv(237, 70%, 49%)
CMYKcmyk(69.6%, 66.4%, 0%, 51%)
CIE-LABlab(22.12, 27.05, -47.59)
CIE-LCHlch(22.12, 54.74, 299.62°)
OKLaboklab(33.96% 0.0102 -0.1373)
OKLCHoklch(33.96% 0.138 274.2)
XYZxyz(5.3277, 3.5482, 19.8022)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A7D #7D7926
analogous
#26567D #262A7D #4D267D
triadic
#262A7D #7D262A #2A7D26
tetradic
#262A7D #7D2656 #7D7926 #267D4D
square
#262A7D #7D2656 #7D7926 #267D4D
split-complementary
#262A7D #7D4D26 #567D26
monochromatic
#090A1F #181A4E #262A7D #343AAC #5358CB

Accessibility & contrast

On white

12.28
#262A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #262A7D
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A7D#FFFFFF#000000##FFFFFF
##262A7D1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #262a7d;
/* rgb */ color: rgb(38, 42, 125);
/* oklch */ color: oklch(34.0% 0.138 274.2);
Tailwind
colors: {
  custom: {
    50: '#6d63a3',
    500: '#262a7d',
    950: '#000000',
  },
}
SCSS
$custom: #262a7d;
$custom-light: #6d63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#262a7d",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 237.241,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33961,
    "c": 0.13769,
    "h": 274.2
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#262A7D
secondary
#AFAB50
accent
#D64BDD
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #262A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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