#262A72#262A72

#262A72 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.122 H 275.1°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#262A72
RGBrgb(38, 42, 114)
HSLhsl(237, 50%, 30%)
HSVhsv(237, 67%, 45%)
CMYKcmyk(66.7%, 63.2%, 0%, 55.3%)
CIE-LABlab(21.14, 22.95, -42.17)
CIE-LCHlch(21.14, 48.01, 298.56°)
OKLaboklab(32.94% 0.0107 -0.1214)
OKLCHoklch(32.94% 0.122 275.1)
XYZxyz(4.6636, 3.2825, 16.3042)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A72 #726E26
analogous
#265072 #262A72 #482672
triadic
#262A72 #72262A #2A7226
tetradic
#262A72 #722650 #726E26 #267248
square
#262A72 #722650 #726E26 #267248
split-complementary
#262A72 #724826 #507226
monochromatic
#080817 #171944 #262A72 #353BA0 #4E55C4

Accessibility & contrast

On white

12.68
#262A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#262A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A72
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A72#FFFFFF#000000##FFFFFF
##262A721.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #262a72;
/* rgb */ color: rgb(38, 42, 114);
/* oklch */ color: oklch(32.9% 0.122 275.1);
Tailwind
colors: {
  custom: {
    50: '#6a639b',
    500: '#262a72',
    950: '#000000',
  },
}
SCSS
$custom: #262a72;
$custom-light: #6a639b;
$custom-dark: #000000;
JSON
{
  "hex": "#262a72",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 236.842,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3294,
    "c": 0.12187,
    "h": 275.1
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#262A72
secondary
#A5A04F
accent
#D24EDA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #262A72

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

Preview Lab → · Contrast checker → · Palette generator →

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