#262F8B#262F8B

#262F8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.151 H 272.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#262F8B
RGBrgb(38, 47, 139)
HSLhsl(235, 57%, 35%)
HSVhsv(235, 73%, 55%)
CMYKcmyk(72.7%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.67, 28.92, -52.21)
CIE-LCHlch(24.67, 59.68, 298.98°)
OKLaboklab(36.22% 0.0053 -0.1508)
OKLCHoklch(36.22% 0.151 272)
XYZxyz(6.4745, 4.3085, 24.9115)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F8B #8B8226
analogous
#26628B #262F8B #4F268B
triadic
#262F8B #8B262F #2F8B26
tetradic
#262F8B #8B2662 #8B8226 #268B4F
square
#262F8B #8B2662 #8B8226 #268B4F
split-complementary
#262F8B #8B4F26 #628B26
monochromatic
#0C0E2B #191F5B #262F8B #333FBB #5A64D2

Accessibility & contrast

On white

11.28
#262F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#262F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F8B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F8B#FFFFFF#000000##FFFFFF
##262F8B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #262f8b;
/* rgb */ color: rgb(38, 47, 139);
/* oklch */ color: oklch(36.2% 0.151 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f67ae',
    500: '#262f8b',
    950: '#000000',
  },
}
SCSS
$custom: #262f8b;
$custom-light: #6f67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#262f8b",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 234.653,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36222,
    "c": 0.15091,
    "h": 272
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#262F8B
secondary
#B7AE56
accent
#D347E0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #262F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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