#262A8B#262A8B

#262A8B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.157 H 273.2°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#262A8B
RGBrgb(38, 42, 139)
HSLhsl(238, 57%, 35%)
HSVhsv(238, 73%, 55%)
CMYKcmyk(72.7%, 69.8%, 0%, 45.5%)
CIE-LABlab(23.44, 32.18, -54.21)
CIE-LCHlch(23.44, 63.05, 300.69°)
OKLaboklab(35.33% 0.0088 -0.1567)
OKLCHoklch(35.33% 0.157 273.2)
XYZxyz(6.2859, 3.9315, 24.8487)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A8B #8B8726
analogous
#265C8B #262A8B #55268B
triadic
#262A8B #8B262A #2A8B26
tetradic
#262A8B #8B265C #8B8726 #268B55
square
#262A8B #8B265C #8B8726 #268B55
split-complementary
#262A8B #8B5526 #5C8B26
monochromatic
#0C0D2B #191B5B #262A8B #3339BB #5A5ED2

Accessibility & contrast

On white

11.76
#262A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#262A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A8B
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A8B#FFFFFF#000000##FFFFFF
##262A8B1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #262a8b;
/* rgb */ color: rgb(38, 42, 139);
/* oklch */ color: oklch(35.3% 0.157 273.2);
Tailwind
colors: {
  custom: {
    50: '#7064ae',
    500: '#262a8b',
    950: '#000000',
  },
}
SCSS
$custom: #262a8b;
$custom-light: #7064ae;
$custom-dark: #000000;
JSON
{
  "hex": "#262a8b",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 237.624,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35332,
    "c": 0.15695,
    "h": 273.2
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#262A8B
secondary
#B7B356
accent
#DA47E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #262A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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