#262A8F#262A8F

#262A8F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.162 H 272.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#262A8F
RGBrgb(38, 42, 143)
HSLhsl(238, 58%, 35%)
HSVhsv(238, 73%, 56%)
CMYKcmyk(73.4%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.84, 33.63, -56.05)
CIE-LCHlch(23.84, 65.37, 300.96°)
OKLaboklab(35.74% 0.0083 -0.1621)
OKLCHoklch(35.74% 0.162 272.9)
XYZxyz(6.5836, 4.0505, 26.4161)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A8F #8F8B26
analogous
#265E8F #262A8F #56268F
triadic
#262A8F #8F262A #2A8F26
tetradic
#262A8F #8F265E #8F8B26 #268F56
square
#262A8F #8F265E #8F8B26 #268F56
split-complementary
#262A8F #8F5626 #5E8F26
monochromatic
#0C0E2E #191C5F #262A8F #3338BF #5C60D4

Accessibility & contrast

On white

11.60
#262A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#262A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A8F
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A8F#FFFFFF#000000##FFFFFF
##262A8F1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #262a8f;
/* rgb */ color: rgb(38, 42, 143);
/* oklch */ color: oklch(35.7% 0.162 272.9);
Tailwind
colors: {
  custom: {
    50: '#7164b1',
    500: '#262a8f',
    950: '#000000',
  },
}
SCSS
$custom: #262a8f;
$custom-light: #7164b1;
$custom-dark: #000000;
JSON
{
  "hex": "#262a8f",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 237.714,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35737,
    "c": 0.16229,
    "h": 272.9
  },
  "luminance": 0.04051
}

Semantic roles & 50–950 ramp

primary
#262A8F
secondary
#B9B558
accent
#DB47E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #262A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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