#262C71#262C71

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

Color values

HEX#262C71
RGBrgb(38, 44, 113)
HSLhsl(235, 50%, 30%)
HSVhsv(235, 66%, 44%)
CMYKcmyk(66.4%, 61.1%, 0%, 55.7%)
CIE-LABlab(21.60, 21.19, -40.78)
CIE-LCHlch(21.60, 45.96, 297.46°)
OKLaboklab(33.25% 0.0088 -0.1173)
OKLCHoklch(33.25% 0.118 274.3)
XYZxyz(4.6797, 3.4053, 16.0303)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262C71 #716B26
analogous
#265271 #262C71 #462671
triadic
#262C71 #71262C #2C7126
tetradic
#262C71 #712652 #716B26 #267146
square
#262C71 #712652 #716B26 #267146
split-complementary
#262C71 #714626 #527126
monochromatic
#080917 #171A43 #262C71 #353E9F #4E57C3

Accessibility & contrast

On white

12.49
#262C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#262C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262C71
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262C71#FFFFFF#000000##FFFFFF
##262C711.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #262c71;
/* rgb */ color: rgb(38, 44, 113);
/* oklch */ color: oklch(33.3% 0.118 274.3);
Tailwind
colors: {
  custom: {
    50: '#6a659a',
    500: '#262c71',
    950: '#000000',
  },
}
SCSS
$custom: #262c71;
$custom-light: #6a659a;
$custom-dark: #000000;
JSON
{
  "hex": "#262c71",
  "rgb": {
    "r": 38,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 235.2,
    "s": 49.669,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33252,
    "c": 0.11763,
    "h": 274.3
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#262C71
secondary
#A49D4F
accent
#CE4FD9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #262C71

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

Preview Lab → · Contrast checker → · Palette generator →

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