#262F71#262F71

#262F71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.9% C 0.113 H 272.9°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#262F71
RGBrgb(38, 47, 113)
HSLhsl(233, 50%, 30%)
HSVhsv(233, 66%, 44%)
CMYKcmyk(66.4%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.43, 19.10, -39.43)
CIE-LCHlch(22.43, 43.81, 295.85°)
OKLaboklab(33.87% 0.0058 -0.1133)
OKLCHoklch(33.87% 0.113 272.9)
XYZxyz(4.7955, 3.6369, 16.0689)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F71 #716826
analogous
#265571 #262F71 #432671
triadic
#262F71 #71262F #2F7126
tetradic
#262F71 #712655 #716826 #267143
square
#262F71 #712655 #716826 #267143
split-complementary
#262F71 #714326 #557126
monochromatic
#080A17 #171C43 #262F71 #35429F #4E5CC3

Accessibility & contrast

On white

12.16
#262F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#262F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F71
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F71#FFFFFF#000000##FFFFFF
##262F711.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #262f71;
/* rgb */ color: rgb(38, 47, 113);
/* oklch */ color: oklch(33.9% 0.113 272.9);
Tailwind
colors: {
  custom: {
    50: '#69679a',
    500: '#262f71',
    950: '#000000',
  },
}
SCSS
$custom: #262f71;
$custom-light: #69679a;
$custom-dark: #000000;
JSON
{
  "hex": "#262f71",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 232.8,
    "s": 49.669,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33874,
    "c": 0.11344,
    "h": 272.9
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#262F71
secondary
#A4994F
accent
#C94FD9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #262F71

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

Preview Lab → · Contrast checker → · Palette generator →

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