#262F7F#262F7F

#262F7F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.134 H 272.5°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#262F7F
RGBrgb(38, 47, 127)
HSLhsl(234, 54%, 32%)
HSVhsv(234, 70%, 50%)
CMYKcmyk(70.1%, 63%, 0%, 50.2%)
CIE-LABlab(23.59, 24.42, -46.45)
CIE-LCHlch(23.59, 52.47, 297.73°)
OKLaboklab(35.1% 0.0059 -0.1339)
OKLCHoklch(35.1% 0.134 272.5)
XYZxyz(5.6453, 3.9769, 20.5447)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F7F #7F7626
analogous
#265B7F #262F7F #4A267F
triadic
#262F7F #7F262F #2F7F26
tetradic
#262F7F #7F265B #7F7626 #267F4A
square
#262F7F #7F265B #7F7626 #267F4A
split-complementary
#262F7F #7F4A26 #5B7F26
monochromatic
#0A0C21 #181E50 #262F7F #3440AE #5460CC

Accessibility & contrast

On white

11.70
#262F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#262F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F7F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F7F#FFFFFF#000000##FFFFFF
##262F7F1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #262f7f;
/* rgb */ color: rgb(38, 47, 127);
/* oklch */ color: oklch(35.1% 0.134 272.5);
Tailwind
colors: {
  custom: {
    50: '#6d67a5',
    500: '#262f7f',
    950: '#000000',
  },
}
SCSS
$custom: #262f7f;
$custom-light: #6d67a5;
$custom-dark: #000000;
JSON
{
  "hex": "#262f7f",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 233.933,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35102,
    "c": 0.13404,
    "h": 272.5
  },
  "luminance": 0.03977
}

Semantic roles & 50–950 ramp

primary
#262F7F
secondary
#B0A751
accent
#CE4ADD
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #262F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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