#262F76#262F76

#262F76 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.3% C 0.121 H 272.8°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#262F76
RGBrgb(38, 47, 118)
HSLhsl(233, 51%, 31%)
HSVhsv(233, 68%, 46%)
CMYKcmyk(67.8%, 60.2%, 0%, 53.7%)
CIE-LABlab(22.84, 21.00, -41.97)
CIE-LCHlch(22.84, 46.93, 296.58°)
OKLaboklab(34.3% 0.0059 -0.1208)
OKLCHoklch(34.3% 0.121 272.8)
XYZxyz(5.0848, 3.7527, 17.5924)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F76 #766D26
analogous
#265776 #262F76 #452676
triadic
#262F76 #76262F #2F7626
tetradic
#262F76 #762657 #766D26 #267645
square
#262F76 #762657 #766D26 #267645
split-complementary
#262F76 #764526 #577626
monochromatic
#080A19 #171D48 #262F76 #3541A4 #505DC7

Accessibility & contrast

On white

12.00
#262F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#262F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F76
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F76#FFFFFF#000000##FFFFFF
##262F761.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #262f76;
/* rgb */ color: rgb(38, 47, 118);
/* oklch */ color: oklch(34.3% 0.121 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b679e',
    500: '#262f76',
    950: '#000000',
  },
}
SCSS
$custom: #262f76;
$custom-light: #6b679e;
$custom-dark: #000000;
JSON
{
  "hex": "#262f76",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 233.25,
    "s": 51.282,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34302,
    "c": 0.12092,
    "h": 272.8
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#262F76
secondary
#A89E4F
accent
#CB4DDB
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #262F76

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

Preview Lab → · Contrast checker → · Palette generator →

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