#262F98#262F98

#262F98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.168 H 271.4°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#262F98
RGBrgb(38, 47, 152)
HSLhsl(235, 60%, 37%)
HSVhsv(235, 75%, 60%)
CMYKcmyk(75%, 69.1%, 0%, 40.4%)
CIE-LABlab(25.90, 33.70, -58.22)
CIE-LCHlch(25.90, 67.27, 300.06°)
OKLaboklab(37.49% 0.0042 -0.1684)
OKLCHoklch(37.49% 0.168 271.4)
XYZxyz(7.4814, 4.7113, 30.2148)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#262F98 #988F26
analogous
#266898 #262F98 #562698
triadic
#262F98 #98262F #2F9826
tetradic
#262F98 #982668 #988F26 #269856
square
#262F98 #982668 #988F26 #269856
split-complementary
#262F98 #985626 #689826
monochromatic
#0E1136 #1A2067 #262F98 #323EC9 #616AD7

Accessibility & contrast

On white

10.81
#262F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#262F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #262F98
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##262F98#FFFFFF#000000##FFFFFF
##262F981.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #262f98;
/* rgb */ color: rgb(38, 47, 152);
/* oklch */ color: oklch(37.5% 0.168 271.4);
Tailwind
colors: {
  custom: {
    50: '#7368b7',
    500: '#262f98',
    950: '#000000',
  },
}
SCSS
$custom: #262f98;
$custom-light: #7368b7;
$custom-dark: #000000;
JSON
{
  "hex": "#262f98",
  "rgb": {
    "r": 38,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 235.263,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37494,
    "c": 0.16845,
    "h": 271.4
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#262F98
secondary
#BDB55D
accent
#D745E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #262F98

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

Preview Lab → · Contrast checker → · Palette generator →

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