#262D8A#262D8A

#262D8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.152 H 272.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#262D8A
RGBrgb(38, 45, 138)
HSLhsl(236, 57%, 35%)
HSVhsv(236, 72%, 54%)
CMYKcmyk(72.5%, 67.4%, 0%, 45.9%)
CIE-LABlab(24.07, 29.87, -52.56)
CIE-LCHlch(24.07, 60.45, 299.61°)
OKLaboklab(35.76% 0.0068 -0.1519)
OKLCHoklch(35.76% 0.152 272.6)
XYZxyz(6.3236, 4.1232, 24.5024)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262D8A #8A8326
analogous
#265F8A #262D8A #51268A
triadic
#262D8A #8A262D #2D8A26
tetradic
#262D8A #8A265F #8A8326 #268A51
square
#262D8A #8A265F #8A8326 #268A51
split-complementary
#262D8A #8A5126 #5F8A26
monochromatic
#0C0E2A #191D5A #262D8A #333DBA #5962D1

Accessibility & contrast

On white

11.51
#262D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#262D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262D8A
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262D8A#FFFFFF#000000##FFFFFF
##262D8A1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #262d8a;
/* rgb */ color: rgb(38, 45, 138);
/* oklch */ color: oklch(35.8% 0.152 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f66ad',
    500: '#262d8a',
    950: '#000000',
  },
}
SCSS
$custom: #262d8a;
$custom-light: #6f66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#262d8a",
  "rgb": {
    "r": 38,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 235.8,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35761,
    "c": 0.152,
    "h": 272.6
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#262D8A
secondary
#B6AF56
accent
#D548E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #262D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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