#262D98#262D98

#262D98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.171 H 271.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#262D98
RGBrgb(38, 45, 152)
HSLhsl(236, 60%, 37%)
HSVhsv(236, 75%, 60%)
CMYKcmyk(75%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.43, 34.97, -58.99)
CIE-LCHlch(25.43, 68.57, 300.66°)
OKLaboklab(37.16% 0.0053 -0.1706)
OKLCHoklch(37.16% 0.171 271.8)
XYZxyz(7.4033, 4.5551, 30.1887)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262D98 #989126
analogous
#266698 #262D98 #582698
triadic
#262D98 #98262D #2D9826
tetradic
#262D98 #982666 #989126 #269858
square
#262D98 #982666 #989126 #269858
split-complementary
#262D98 #985826 #669826
monochromatic
#0E1036 #1A1F67 #262D98 #323BC9 #6168D7

Accessibility & contrast

On white

10.99
#262D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#262D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262D98
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262D98#FFFFFF#000000##FFFFFF
##262D981.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #262d98;
/* rgb */ color: rgb(38, 45, 152);
/* oklch */ color: oklch(37.2% 0.171 271.8);
Tailwind
colors: {
  custom: {
    50: '#7366b7',
    500: '#262d98',
    950: '#000000',
  },
}
SCSS
$custom: #262d98;
$custom-light: #7366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#262d98",
  "rgb": {
    "r": 38,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 236.316,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37155,
    "c": 0.17073,
    "h": 271.8
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#262D98
secondary
#BDB75D
accent
#D945E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #262D98

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

Preview Lab → · Contrast checker → · Palette generator →

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