#262AA5#262AA5

#262AA5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.191 H 271.5°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#262AA5
RGBrgb(38, 42, 165)
HSLhsl(238, 63%, 40%)
HSVhsv(238, 77%, 65%)
CMYKcmyk(77%, 74.5%, 0%, 35.3%)
CIE-LABlab(26.11, 41.35, -65.78)
CIE-LCHlch(26.11, 77.70, 302.16°)
OKLaboklab(38.05% 0.005 -0.1904)
OKLCHoklch(38.05% 0.191 271.5)
XYZxyz(8.4165, 4.7837, 36.0698)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262AA5 #A5A126
analogous
#266AA5 #262AA5 #6126A5
triadic
#262AA5 #A5262A #2AA526
tetradic
#262AA5 #A5266A #A5A126 #26A561
square
#262AA5 #A5266A #A5A126 #26A561
split-complementary
#262AA5 #A56126 #6AA526
monochromatic
#0F1142 #1B1D73 #262AA5 #373CD1 #696DDC

Accessibility & contrast

On white

10.73
#262AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#262AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262AA5
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262AA5#FFFFFF#000000##FFFFFF
##262AA51.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #262aa5;
/* rgb */ color: rgb(38, 42, 165);
/* oklch */ color: oklch(38.0% 0.191 271.5);
Tailwind
colors: {
  custom: {
    50: '#7665c1',
    500: '#262aa5',
    950: '#000000',
  },
}
SCSS
$custom: #262aa5;
$custom-light: #7665c1;
$custom-dark: #000000;
JSON
{
  "hex": "#262aa5",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 238.11,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38045,
    "c": 0.1905,
    "h": 271.5
  },
  "luminance": 0.04785
}

Semantic roles & 50–950 ramp

primary
#262AA5
secondary
#C3C064
accent
#E042E6
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #262AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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