#262F81#262F81

#262F81 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.137 H 272.4°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#262F81
RGBrgb(38, 47, 129)
HSLhsl(234, 54%, 33%)
HSVhsv(234, 71%, 51%)
CMYKcmyk(70.5%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.77, 25.17, -47.42)
CIE-LCHlch(23.77, 53.69, 297.96°)
OKLaboklab(35.28% 0.0058 -0.1368)
OKLCHoklch(35.28% 0.137 272.4)
XYZxyz(5.7770, 4.0295, 21.2380)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F81 #817826
analogous
#265C81 #262F81 #4A2681
triadic
#262F81 #81262F #2F8126
tetradic
#262F81 #81265C #817826 #26814A
square
#262F81 #81265C #817826 #26814A
split-complementary
#262F81 #814A26 #5C8126
monochromatic
#0A0D22 #181E52 #262F81 #3440B0 #5560CD

Accessibility & contrast

On white

11.63
#262F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#262F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F81
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F81#FFFFFF#000000##FFFFFF
##262F811.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #262f81;
/* rgb */ color: rgb(38, 47, 129);
/* oklch */ color: oklch(35.3% 0.137 272.4);
Tailwind
colors: {
  custom: {
    50: '#6d67a6',
    500: '#262f81',
    950: '#000000',
  },
}
SCSS
$custom: #262f81;
$custom-light: #6d67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#262f81",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 234.066,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35285,
    "c": 0.1369,
    "h": 272.4
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#262F81
secondary
#B1A851
accent
#CF4ADE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #262F81

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

Preview Lab → · Contrast checker → · Palette generator →

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