#262A71#262A71

#262A71 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.120 H 275.1°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#262A71
RGBrgb(38, 42, 113)
HSLhsl(237, 50%, 30%)
HSVhsv(237, 66%, 44%)
CMYKcmyk(66.4%, 62.8%, 0%, 55.7%)
CIE-LABlab(21.06, 22.58, -41.66)
CIE-LCHlch(21.06, 47.39, 298.46°)
OKLaboklab(32.85% 0.0108 -0.1199)
OKLCHoklch(32.85% 0.12 275.1)
XYZxyz(4.6070, 3.2599, 16.0060)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A71 #716D26
analogous
#265071 #262A71 #482671
triadic
#262A71 #71262A #2A7126
tetradic
#262A71 #712650 #716D26 #267148
square
#262A71 #712650 #716D26 #267148
split-complementary
#262A71 #714826 #507126
monochromatic
#080917 #171943 #262A71 #353B9F #4E54C3

Accessibility & contrast

On white

12.71
#262A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#262A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A71
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A71#FFFFFF#000000##FFFFFF
##262A711.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #262a71;
/* rgb */ color: rgb(38, 42, 113);
/* oklch */ color: oklch(32.9% 0.120 275.1);
Tailwind
colors: {
  custom: {
    50: '#6a639a',
    500: '#262a71',
    950: '#000000',
  },
}
SCSS
$custom: #262a71;
$custom-light: #6a639a;
$custom-dark: #000000;
JSON
{
  "hex": "#262a71",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 236.8,
    "s": 49.669,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3285,
    "c": 0.1204,
    "h": 275.1
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#262A71
secondary
#A49F4F
accent
#D24FD9
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #262A71

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

Preview Lab → · Contrast checker → · Palette generator →

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