#242A85#242A85

#242A85 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.149 H 272.7°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#242A85
RGBrgb(36, 42, 133)
HSLhsl(236, 57%, 33%)
HSVhsv(236, 73%, 52%)
CMYKcmyk(72.9%, 68.4%, 0%, 47.8%)
CIE-LABlab(22.74, 29.74, -51.63)
CIE-LCHlch(22.74, 59.58, 299.94°)
OKLaboklab(34.61% 0.007 -0.1492)
OKLCHoklch(34.61% 0.149 272.7)
XYZxyz(5.7877, 3.7239, 22.5995)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A85 #857F24
analogous
#245A85 #242A85 #4E2485
triadic
#242A85 #85242A #2A8524
tetradic
#242A85 #85245A #857F24 #24854E
square
#242A85 #85245A #857F24 #24854E
split-complementary
#242A85 #854E24 #5A8524
monochromatic
#0A0C25 #171B55 #242A85 #3139B5 #535BD0

Accessibility & contrast

On white

12.04
#242A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A85
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A85#FFFFFF#000000##FFFFFF
##242A851.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242a85;
/* rgb */ color: rgb(36, 42, 133);
/* oklch */ color: oklch(34.6% 0.149 272.7);
Tailwind
colors: {
  custom: {
    50: '#6e64a9',
    500: '#242a85',
    950: '#000000',
  },
}
SCSS
$custom: #242a85;
$custom-light: #6e64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#242a85",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 236.289,
    "s": 57.396,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34608,
    "c": 0.14937,
    "h": 272.7
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#242A85
secondary
#B4AE50
accent
#D747E1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #242A85

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

Preview Lab → · Contrast checker → · Palette generator →

#242A85 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva