#262A8E#262A8E

#262A8E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.161 H 273.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#262A8E
RGBrgb(38, 42, 142)
HSLhsl(238, 58%, 35%)
HSVhsv(238, 73%, 56%)
CMYKcmyk(73.2%, 70.4%, 0%, 44.3%)
CIE-LABlab(23.74, 33.27, -55.60)
CIE-LCHlch(23.74, 64.79, 300.90°)
OKLaboklab(35.64% 0.0084 -0.1607)
OKLCHoklch(35.64% 0.161 273)
XYZxyz(6.5081, 4.0203, 26.0190)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A8E #8E8A26
analogous
#265E8E #262A8E #56268E
triadic
#262A8E #8E262A #2A8E26
tetradic
#262A8E #8E265E #8E8A26 #268E56
square
#262A8E #8E265E #8E8A26 #268E56
split-complementary
#262A8E #8E5626 #5E8E26
monochromatic
#0C0D2D #191C5E #262A8E #3338BE #5B60D3

Accessibility & contrast

On white

11.64
#262A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #262A8E
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A8E#FFFFFF#000000##FFFFFF
##262A8E1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #262a8e;
/* rgb */ color: rgb(38, 42, 142);
/* oklch */ color: oklch(35.6% 0.161 273.0);
Tailwind
colors: {
  custom: {
    50: '#7164b0',
    500: '#262a8e',
    950: '#000000',
  },
}
SCSS
$custom: #262a8e;
$custom-light: #7164b0;
$custom-dark: #000000;
JSON
{
  "hex": "#262a8e",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 237.692,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35635,
    "c": 0.16097,
    "h": 273
  },
  "luminance": 0.04021
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #262A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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