#262F7E#262F7E

#262F7E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.133 H 272.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#262F7E
RGBrgb(38, 47, 126)
HSLhsl(234, 54%, 32%)
HSVhsv(234, 70%, 49%)
CMYKcmyk(69.8%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.51, 24.04, -45.95)
CIE-LCHlch(23.51, 51.86, 297.61°)
OKLaboklab(35.01% 0.0059 -0.1325)
OKLCHoklch(35.01% 0.133 272.6)
XYZxyz(5.5805, 3.9509, 20.2031)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F7E #7E7526
analogous
#265B7E #262F7E #49267E
triadic
#262F7E #7E262F #2F7E26
tetradic
#262F7E #7E265B #7E7526 #267E49
square
#262F7E #7E265B #7E7526 #267E49
split-complementary
#262F7E #7E4926 #5B7E26
monochromatic
#0A0C20 #181D4F #262F7E #3441AD #535FCB

Accessibility & contrast

On white

11.73
#262F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#262F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F7E
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F7E#FFFFFF#000000##FFFFFF
##262F7E1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #262f7e;
/* rgb */ color: rgb(38, 47, 126);
/* oklch */ color: oklch(35.0% 0.133 272.6);
Tailwind
colors: {
  custom: {
    50: '#6c67a4',
    500: '#262f7e',
    950: '#000000',
  },
}
SCSS
$custom: #262f7e;
$custom-light: #6c67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#262f7e",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 233.864,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.1326,
    "h": 272.6
  },
  "luminance": 0.03951
}

Semantic roles & 50–950 ramp

primary
#262F7E
secondary
#B0A650
accent
#CE4BDD
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #262F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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