#262F87#262F87

#262F87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.145 H 272.2°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#262F87
RGBrgb(38, 47, 135)
HSLhsl(234, 56%, 34%)
HSVhsv(234, 72%, 53%)
CMYKcmyk(71.9%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.30, 27.42, -50.31)
CIE-LCHlch(24.30, 57.30, 298.59°)
OKLaboklab(35.84% 0.0055 -0.1453)
OKLCHoklch(35.84% 0.145 272.2)
XYZxyz(6.1875, 4.1938, 23.4004)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F87 #877E26
analogous
#266087 #262F87 #4E2687
triadic
#262F87 #87262F #2F8726
tetradic
#262F87 #872660 #877E26 #26874E
square
#262F87 #872660 #877E26 #26874E
split-complementary
#262F87 #874E26 #608726
monochromatic
#0B0E27 #191E57 #262F87 #3340B7 #5863D0

Accessibility & contrast

On white

11.42
#262F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#262F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F87
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F87#FFFFFF#000000##FFFFFF
##262F871.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #262f87;
/* rgb */ color: rgb(38, 47, 135);
/* oklch */ color: oklch(35.8% 0.145 272.2);
Tailwind
colors: {
  custom: {
    50: '#6f67ab',
    500: '#262f87',
    950: '#000000',
  },
}
SCSS
$custom: #262f87;
$custom-light: #6f67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#262f87",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 234.433,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35842,
    "c": 0.14537,
    "h": 272.2
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#262F87
secondary
#B5AC54
accent
#D148DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #262F87

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

Preview Lab → · Contrast checker → · Palette generator →

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