#262AAC#262AAC

#262AAC is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.199 H 271.1°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#262AAC
RGBrgb(38, 42, 172)
HSLhsl(238, 64%, 41%)
HSVhsv(238, 78%, 67%)
CMYKcmyk(77.9%, 75.6%, 0%, 32.5%)
CIE-LABlab(26.86, 43.74, -68.76)
CIE-LCHlch(26.86, 81.49, 302.46°)
OKLaboklab(38.81% 0.0038 -0.1991)
OKLCHoklch(38.81% 0.199 271.1)
XYZxyz(9.0712, 5.0456, 39.5175)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262AAC #ACA826
analogous
#266DAC #262AAC #6526AC
triadic
#262AAC #AC262A #2AAC26
tetradic
#262AAC #AC266D #ACA826 #26AC65
square
#262AAC #AC266D #ACA826 #26AC65
split-complementary
#262AAC #AC6526 #6DAC26
monochromatic
#101248 #1B1E7A #262AAC #3B40D4 #6E71DF

Accessibility & contrast

On white

10.45
#262AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#262AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262AAC
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262AAC#FFFFFF#000000##FFFFFF
##262AAC1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#0039AA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #262aac;
/* rgb */ color: rgb(38, 42, 172);
/* oklch */ color: oklch(38.8% 0.199 271.1);
Tailwind
colors: {
  custom: {
    50: '#7865c6',
    500: '#262aac',
    950: '#000000',
  },
}
SCSS
$custom: #262aac;
$custom-light: #7865c6;
$custom-dark: #000000;
JSON
{
  "hex": "#262aac",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 238.209,
    "s": 63.81,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38805,
    "c": 0.19913,
    "h": 271.1
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#262AAC
secondary
#C5C368
accent
#E241E7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #262AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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