#262A8D#262A8D

#262A8D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.160 H 273.1°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#262A8D
RGBrgb(38, 42, 141)
HSLhsl(238, 58%, 35%)
HSVhsv(238, 73%, 55%)
CMYKcmyk(73%, 70.2%, 0%, 44.7%)
CIE-LABlab(23.64, 32.91, -55.14)
CIE-LCHlch(23.64, 64.21, 300.83°)
OKLaboklab(35.53% 0.0085 -0.1594)
OKLCHoklch(35.53% 0.16 273.1)
XYZxyz(6.4334, 3.9904, 25.6253)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A8D #8D8926
analogous
#265D8D #262A8D #56268D
triadic
#262A8D #8D262A #2A8D26
tetradic
#262A8D #8D265D #8D8926 #268D56
square
#262A8D #8D265D #8D8926 #268D56
split-complementary
#262A8D #8D5626 #5D8D26
monochromatic
#0C0D2D #191C5D #262A8D #3338BD #5B5FD3

Accessibility & contrast

On white

11.68
#262A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#262A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A8D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A8D#FFFFFF#000000##FFFFFF
##262A8D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #262a8d;
/* rgb */ color: rgb(38, 42, 141);
/* oklch */ color: oklch(35.5% 0.160 273.1);
Tailwind
colors: {
  custom: {
    50: '#7064af',
    500: '#262a8d',
    950: '#000000',
  },
}
SCSS
$custom: #262a8d;
$custom-light: #7064af;
$custom-dark: #000000;
JSON
{
  "hex": "#262a8d",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 237.67,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35534,
    "c": 0.15963,
    "h": 273.1
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#262A8D
secondary
#B8B457
accent
#DB47E1
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #262A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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