#262F78#262F78

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

Color values

HEX#262F78
RGBrgb(38, 47, 120)
HSLhsl(233, 52%, 31%)
HSVhsv(233, 68%, 47%)
CMYKcmyk(68.3%, 60.8%, 0%, 52.9%)
CIE-LABlab(23.00, 21.76, -42.98)
CIE-LCHlch(23.00, 48.17, 296.86°)
OKLaboklab(34.48% 0.006 -0.1237)
OKLCHoklch(34.48% 0.124 272.8)
XYZxyz(5.2049, 3.8007, 18.2250)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F78 #786F26
analogous
#265878 #262F78 #462678
triadic
#262F78 #78262F #2F7826
tetradic
#262F78 #782658 #786F26 #267846
square
#262F78 #782658 #786F26 #267846
split-complementary
#262F78 #784626 #587826
monochromatic
#090B1B #171D4A #262F78 #3541A6 #515EC8

Accessibility & contrast

On white

11.93
#262F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#262F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F78
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F78#FFFFFF#000000##FFFFFF
##262F781.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #262f78;
/* rgb */ color: rgb(38, 47, 120);
/* oklch */ color: oklch(34.5% 0.124 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b67a0',
    500: '#262f78',
    950: '#000000',
  },
}
SCSS
$custom: #262f78;
$custom-light: #6b67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#262f78",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 233.415,
    "s": 51.899,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34477,
    "c": 0.12387,
    "h": 272.8
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#262F78
secondary
#AAA050
accent
#CC4CDB
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #262F78

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

Preview Lab → · Contrast checker → · Palette generator →

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