#262A52#262A52

#262A52 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.072 H 276.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#262A52
RGBrgb(38, 42, 82)
HSLhsl(235, 37%, 24%)
HSVhsv(235, 54%, 32%)
CMYKcmyk(53.7%, 48.8%, 0%, 67.8%)
CIE-LABlab(18.70, 11.03, -25.08)
CIE-LCHlch(18.70, 27.40, 293.74°)
OKLaboklab(30.34% 0.0086 -0.0712)
OKLCHoklch(30.34% 0.072 276.9)
XYZxyz(3.1498, 2.6770, 8.3317)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A52 #524E26
analogous
#264052 #262A52 #382652
triadic
#262A52 #52262A #2A5226
tetradic
#262A52 #522640 #524E26 #265238
square
#262A52 #522640 #524E26 #265238
split-complementary
#262A52 #523826 #405226
monochromatic
#0A0B15 #131528 #262A52 #393F7C #4D55A6

Accessibility & contrast

On white

13.68
#262A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#262A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A52
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A52#FFFFFF#000000##FFFFFF
##262A521.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2F54
Deuteranopia (green-blind)
#162C51
Tritanopia (blue-blind)
#15323A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #262a52;
/* rgb */ color: rgb(38, 42, 82);
/* oklch */ color: oklch(30.3% 0.072 276.9);
Tailwind
colors: {
  custom: {
    50: '#646383',
    500: '#262a52',
    950: '#000000',
  },
}
SCSS
$custom: #262a52;
$custom-light: #646383;
$custom-dark: #000000;
JSON
{
  "hex": "#262a52",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 82
  },
  "hsl": {
    "h": 234.545,
    "s": 36.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30335,
    "c": 0.07169,
    "h": 276.9
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#262A52
secondary
#85804F
accent
#C25BCD
background
#F6F5F8
surface
#EBEAEF
border
#C6C6CA
text
#05050A
muted
#7A797C

Preview Lab

Preview with #262A52

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

Preview Lab → · Contrast checker → · Palette generator →

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