#262A98#262A98

#262A98 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.174 H 272.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#262A98
RGBrgb(38, 42, 152)
HSLhsl(238, 60%, 37%)
HSVhsv(238, 75%, 60%)
CMYKcmyk(75%, 72.4%, 0%, 40.4%)
CIE-LABlab(24.75, 36.83, -60.11)
CIE-LCHlch(24.75, 70.50, 301.50°)
OKLaboklab(36.67% 0.007 -0.1739)
OKLCHoklch(36.67% 0.174 272.3)
XYZxyz(7.2929, 4.3342, 30.1519)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A98 #989426
analogous
#266398 #262A98 #5B2698
triadic
#262A98 #98262A #2A9826
tetradic
#262A98 #982663 #989426 #26985B
square
#262A98 #982663 #989426 #26985B
split-complementary
#262A98 #985B26 #639826
monochromatic
#0E0F36 #1A1C67 #262A98 #3238C9 #6165D7

Accessibility & contrast

On white

11.25
#262A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#262A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A98
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A98#FFFFFF#000000##FFFFFF
##262A981.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #262a98;
/* rgb */ color: rgb(38, 42, 152);
/* oklch */ color: oklch(36.7% 0.174 272.3);
Tailwind
colors: {
  custom: {
    50: '#7364b7',
    500: '#262a98',
    950: '#000000',
  },
}
SCSS
$custom: #262a98;
$custom-light: #7364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#262a98",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 237.895,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36665,
    "c": 0.17406,
    "h": 272.3
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#262A98
secondary
#BDB95D
accent
#DE45E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #262A98

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

Preview Lab → · Contrast checker → · Palette generator →

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