#2A258E#2A258E

#2A258E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.166 H 275.7°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2A258E
RGBrgb(42, 37, 142)
HSLhsl(243, 59%, 35%)
HSVhsv(243, 74%, 56%)
CMYKcmyk(70.4%, 73.9%, 0%, 44.3%)
CIE-LABlab(22.89, 36.82, -56.98)
CIE-LCHlch(22.89, 67.84, 302.87°)
OKLaboklab(35.1% 0.0166 -0.1647)
OKLCHoklch(35.1% 0.166 275.7)
XYZxyz(6.4973, 3.7678, 25.9708)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A258E #898E25
analogous
#25558E #2A258E #5E258E
triadic
#2A258E #8E2A25 #258E2A
tetradic
#2A258E #8E2555 #898E25 #258E5E
square
#2A258E #8E2555 #898E25 #258E5E
split-complementary
#2A258E #8E5E25 #558E25
monochromatic
#0D0C2D #1C185D #2A258E #3832BF #5F5AD4

Accessibility & contrast

On white

11.98
#2A258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A258E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A258E#FFFFFF#000000##FFFFFF
##2A258E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a258e;
/* rgb */ color: rgb(42, 37, 142);
/* oklch */ color: oklch(35.1% 0.166 275.7);
Tailwind
colors: {
  custom: {
    50: '#7361b0',
    500: '#2a258e',
    950: '#000000',
  },
}
SCSS
$custom: #2a258e;
$custom-light: #7361b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a258e",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 242.857,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35096,
    "c": 0.16552,
    "h": 275.7
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#2A258E
secondary
#B4B956
accent
#E246DA
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A258E

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

Preview Lab → · Contrast checker → · Palette generator →

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