#262C72#262C72

#262C72 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.3% C 0.119 H 274.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#262C72
RGBrgb(38, 44, 114)
HSLhsl(235, 50%, 30%)
HSVhsv(235, 67%, 45%)
CMYKcmyk(66.7%, 61.4%, 0%, 55.3%)
CIE-LABlab(21.68, 21.57, -41.29)
CIE-LCHlch(21.68, 46.58, 297.59°)
OKLaboklab(33.34% 0.0088 -0.1188)
OKLCHoklch(33.34% 0.119 274.2)
XYZxyz(4.7363, 3.4279, 16.3284)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262C72 #726C26
analogous
#265272 #262C72 #462672
triadic
#262C72 #72262C #2C7226
tetradic
#262C72 #722652 #726C26 #267246
square
#262C72 #722652 #726C26 #267246
split-complementary
#262C72 #724626 #527226
monochromatic
#080917 #171A44 #262C72 #353EA0 #4E58C4

Accessibility & contrast

On white

12.46
#262C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#262C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262C72
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262C72#FFFFFF#000000##FFFFFF
##262C721.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #262c72;
/* rgb */ color: rgb(38, 44, 114);
/* oklch */ color: oklch(33.3% 0.119 274.2);
Tailwind
colors: {
  custom: {
    50: '#6a659b',
    500: '#262c72',
    950: '#000000',
  },
}
SCSS
$custom: #262c72;
$custom-light: #6a659b;
$custom-dark: #000000;
JSON
{
  "hex": "#262c72",
  "rgb": {
    "r": 38,
    "g": 44,
    "b": 114
  },
  "hsl": {
    "h": 235.263,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3334,
    "c": 0.11912,
    "h": 274.2
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#262C72
secondary
#A59E4F
accent
#CF4EDA
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #262C72

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

Preview Lab → · Contrast checker → · Palette generator →

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