#2A268E#2A268E

#2A268E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.164 H 275.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2A268E
RGBrgb(42, 38, 142)
HSLhsl(242, 58%, 35%)
HSVhsv(242, 73%, 56%)
CMYKcmyk(70.4%, 73.2%, 0%, 44.3%)
CIE-LABlab(23.10, 36.22, -56.63)
CIE-LCHlch(23.10, 67.22, 302.60°)
OKLaboklab(35.25% 0.0159 -0.1636)
OKLCHoklch(35.25% 0.164 275.6)
XYZxyz(6.5288, 3.8309, 25.9813)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A268E #8A8E26
analogous
#26568E #2A268E #5E268E
triadic
#2A268E #8E2A26 #268E2A
tetradic
#2A268E #8E2656 #8A8E26 #268E5E
square
#2A268E #8E2656 #8A8E26 #268E5E
split-complementary
#2A268E #8E5E26 #568E26
monochromatic
#0D0C2D #1C195E #2A268E #3833BE #605BD3

Accessibility & contrast

On white

11.89
#2A268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A268E
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A268E#FFFFFF#000000##FFFFFF
##2A268E1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a268e;
/* rgb */ color: rgb(42, 38, 142);
/* oklch */ color: oklch(35.3% 0.164 275.6);
Tailwind
colors: {
  custom: {
    50: '#7361b0',
    500: '#2a268e',
    950: '#000000',
  },
}
SCSS
$custom: #2a268e;
$custom-light: #7361b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a268e",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 242.308,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3525,
    "c": 0.16442,
    "h": 275.6
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#2A268E
secondary
#B4B858
accent
#E147DB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A268E

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

Preview Lab → · Contrast checker → · Palette generator →

#2A268E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva