#262F72#262F72

#262F72 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.115 H 272.9°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#262F72
RGBrgb(38, 47, 114)
HSLhsl(233, 50%, 30%)
HSVhsv(233, 67%, 45%)
CMYKcmyk(66.7%, 58.8%, 0%, 55.3%)
CIE-LABlab(22.51, 19.48, -39.94)
CIE-LCHlch(22.51, 44.44, 296.00°)
OKLaboklab(33.96% 0.0058 -0.1148)
OKLCHoklch(33.96% 0.115 272.9)
XYZxyz(4.8521, 3.6596, 16.3670)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F72 #726926
analogous
#265572 #262F72 #432672
triadic
#262F72 #72262F #2F7226
tetradic
#262F72 #722655 #726926 #267243
square
#262F72 #722655 #726926 #267243
split-complementary
#262F72 #724326 #557226
monochromatic
#080917 #171C44 #262F72 #3542A0 #4E5CC4

Accessibility & contrast

On white

12.12
#262F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#262F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F72
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F72#FFFFFF#000000##FFFFFF
##262F721.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #262f72;
/* rgb */ color: rgb(38, 47, 114);
/* oklch */ color: oklch(34.0% 0.115 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a679b',
    500: '#262f72',
    950: '#000000',
  },
}
SCSS
$custom: #262f72;
$custom-light: #6a679b;
$custom-dark: #000000;
JSON
{
  "hex": "#262f72",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 232.895,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33958,
    "c": 0.11494,
    "h": 272.9
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#262F72
secondary
#A59A4F
accent
#C94EDA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #262F72

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

Preview Lab → · Contrast checker → · Palette generator →

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