#262C81#262C81

#262C81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.141 H 273.4°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#262C81
RGBrgb(38, 44, 129)
HSLhsl(236, 54%, 33%)
HSVhsv(236, 71%, 51%)
CMYKcmyk(70.5%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.99, 27.20, -48.69)
CIE-LCHlch(22.99, 55.77, 299.19°)
OKLaboklab(34.71% 0.0083 -0.1405)
OKLCHoklch(34.71% 0.141 273.4)
XYZxyz(5.6611, 3.7979, 21.1993)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262C81 #817B26
analogous
#265981 #262C81 #4D2681
triadic
#262C81 #81262C #2C8126
tetradic
#262C81 #812659 #817B26 #26814D
square
#262C81 #812659 #817B26 #26814D
split-complementary
#262C81 #814D26 #598126
monochromatic
#0A0C22 #181C52 #262C81 #343CB0 #555DCD

Accessibility & contrast

On white

11.93
#262C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #262C81
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262C81#FFFFFF#000000##FFFFFF
##262C811.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #262c81;
/* rgb */ color: rgb(38, 44, 129);
/* oklch */ color: oklch(34.7% 0.141 273.4);
Tailwind
colors: {
  custom: {
    50: '#6d65a6',
    500: '#262c81',
    950: '#000000',
  },
}
SCSS
$custom: #262c81;
$custom-light: #6d65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#262c81",
  "rgb": {
    "r": 38,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 236.044,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34713,
    "c": 0.14077,
    "h": 273.4
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#262C81
secondary
#B1AB51
accent
#D44ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #262C81

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

Preview Lab → · Contrast checker → · Palette generator →

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