#262F56#262F56

#262F56 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.071 H 272.0°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#262F56
RGBrgb(38, 47, 86)
HSLhsl(229, 39%, 24%)
HSVhsv(229, 56%, 34%)
CMYKcmyk(55.8%, 45.3%, 0%, 66.3%)
CIE-LABlab(20.51, 8.91, -24.88)
CIE-LCHlch(20.51, 26.43, 289.71°)
OKLaboklab(31.8% 0.0025 -0.0705)
OKLCHoklch(31.8% 0.071 272)
XYZxyz(3.4950, 3.1168, 9.2197)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F56 #564D26
analogous
#264756 #262F56 #352656
triadic
#262F56 #56262F #2F5626
tetradic
#262F56 #562647 #564D26 #265635
square
#262F56 #562647 #564D26 #265635
split-complementary
#262F56 #563526 #475626
monochromatic
#090C15 #13182C #262F56 #394680 #4C5DAB

Accessibility & contrast

On white

12.94
#262F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#262F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F56
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F56#FFFFFF#000000##FFFFFF
##262F561.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3458
Deuteranopia (green-blind)
#1A2F55
Tritanopia (blue-blind)
#11373E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #262f56;
/* rgb */ color: rgb(38, 47, 86);
/* oklch */ color: oklch(31.8% 0.071 272.0);
Tailwind
colors: {
  custom: {
    50: '#646786',
    500: '#262f56',
    950: '#000000',
  },
}
SCSS
$custom: #262f56;
$custom-light: #646786;
$custom-dark: #000000;
JSON
{
  "hex": "#262f56",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 86
  },
  "hsl": {
    "h": 228.75,
    "s": 38.71,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31797,
    "c": 0.07059,
    "h": 272
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#262F56
secondary
#897E4F
accent
#B959CF
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #262F56

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

Preview Lab → · Contrast checker → · Palette generator →

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