#262D7E#262D7E

#262D7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.135 H 273.2°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#262D7E
RGBrgb(38, 45, 126)
HSLhsl(235, 54%, 32%)
HSVhsv(235, 70%, 49%)
CMYKcmyk(69.8%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.98, 25.40, -46.82)
CIE-LCHlch(22.98, 53.26, 298.48°)
OKLaboklab(34.62% 0.0076 -0.135)
OKLCHoklch(34.62% 0.135 273.2)
XYZxyz(5.5024, 3.7947, 20.1771)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262D7E #7E7726
analogous
#26597E #262D7E #4B267E
triadic
#262D7E #7E262D #2D7E26
tetradic
#262D7E #7E2659 #7E7726 #267E4B
square
#262D7E #7E2659 #7E7726 #267E4B
split-complementary
#262D7E #7E4B26 #597E26
monochromatic
#0A0B20 #181C4F #262D7E #343EAD #535DCB

Accessibility & contrast

On white

11.94
#262D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#262D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262D7E
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262D7E#FFFFFF#000000##FFFFFF
##262D7E1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #262d7e;
/* rgb */ color: rgb(38, 45, 126);
/* oklch */ color: oklch(34.6% 0.135 273.2);
Tailwind
colors: {
  custom: {
    50: '#6d66a4',
    500: '#262d7e',
    950: '#000000',
  },
}
SCSS
$custom: #262d7e;
$custom-light: #6d66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#262d7e",
  "rgb": {
    "r": 38,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 235.227,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34622,
    "c": 0.13523,
    "h": 273.2
  },
  "luminance": 0.03795
}

Semantic roles & 50–950 ramp

primary
#262D7E
secondary
#B0A850
accent
#D14BDD
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #262D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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