#262F58#262F58

#262F58 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 31.9% C 0.074 H 272.3°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#262F58
RGBrgb(38, 47, 88)
HSLhsl(229, 40%, 25%)
HSVhsv(229, 57%, 35%)
CMYKcmyk(56.8%, 46.6%, 0%, 65.5%)
CIE-LABlab(20.63, 9.65, -26.01)
CIE-LCHlch(20.63, 27.74, 290.36°)
OKLaboklab(31.94% 0.0029 -0.0738)
OKLCHoklch(31.94% 0.074 272.3)
XYZxyz(3.5767, 3.1494, 9.6501)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F58 #584F26
analogous
#264858 #262F58 #362658
triadic
#262F58 #58262F #2F5826
tetradic
#262F58 #582648 #584F26 #265836
square
#262F58 #582648 #584F26 #265836
split-complementary
#262F58 #583626 #485826
monochromatic
#090B15 #14182D #262F58 #384683 #4B5DAD

Accessibility & contrast

On white

12.88
#262F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#262F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F58
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F58#FFFFFF#000000##FFFFFF
##262F581.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E345A
Deuteranopia (green-blind)
#183057
Tritanopia (blue-blind)
#0F383F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #262f58;
/* rgb */ color: rgb(38, 47, 88);
/* oklch */ color: oklch(31.9% 0.074 272.3);
Tailwind
colors: {
  custom: {
    50: '#646787',
    500: '#262f58',
    950: '#000000',
  },
}
SCSS
$custom: #262f58;
$custom-light: #646787;
$custom-dark: #000000;
JSON
{
  "hex": "#262f58",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 88
  },
  "hsl": {
    "h": 229.2,
    "s": 39.683,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31936,
    "c": 0.07391,
    "h": 272.3
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#262F58
secondary
#8B804F
accent
#BA58D0
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #262F58

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

Preview Lab → · Contrast checker → · Palette generator →

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