#262A75#262A75

#262A75 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.126 H 274.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#262A75
RGBrgb(38, 42, 117)
HSLhsl(237, 51%, 30%)
HSVhsv(237, 68%, 46%)
CMYKcmyk(67.5%, 64.1%, 0%, 54.1%)
CIE-LABlab(21.40, 24.08, -43.67)
CIE-LCHlch(21.40, 49.87, 298.87°)
OKLaboklab(33.21% 0.0106 -0.1258)
OKLCHoklch(33.21% 0.126 274.8)
XYZxyz(4.8371, 3.3519, 17.2183)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262A75 #757126
analogous
#265175 #262A75 #492675
triadic
#262A75 #75262A #2A7526
tetradic
#262A75 #752651 #757126 #267549
square
#262A75 #752651 #757126 #267549
split-complementary
#262A75 #754926 #517526
monochromatic
#080919 #171947 #262A75 #353BA3 #4F55C6

Accessibility & contrast

On white

12.57
#262A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#262A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262A75
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262A75#FFFFFF#000000##FFFFFF
##262A751.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #262a75;
/* rgb */ color: rgb(38, 42, 117);
/* oklch */ color: oklch(33.2% 0.126 274.8);
Tailwind
colors: {
  custom: {
    50: '#6b639d',
    500: '#262a75',
    950: '#000000',
  },
}
SCSS
$custom: #262a75;
$custom-light: #6b639d;
$custom-dark: #000000;
JSON
{
  "hex": "#262a75",
  "rgb": {
    "r": 38,
    "g": 42,
    "b": 117
  },
  "hsl": {
    "h": 236.962,
    "s": 50.968,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33213,
    "c": 0.12625,
    "h": 274.8
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#262A75
secondary
#A7A34F
accent
#D34DDA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #262A75

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

Preview Lab → · Contrast checker → · Palette generator →

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