#242D98#242D98

#242D98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.171 H 271.0°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#242D98
RGBrgb(36, 45, 152)
HSLhsl(235, 62%, 37%)
HSVhsv(235, 76%, 60%)
CMYKcmyk(76.3%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.32, 34.76, -59.18)
CIE-LCHlch(25.32, 68.63, 300.43°)
OKLaboklab(37.04% 0.0031 -0.1713)
OKLCHoklch(37.04% 0.171 271)
XYZxyz(7.3315, 4.5181, 30.1854)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D98 #988F24
analogous
#246798 #242D98 #552498
triadic
#242D98 #98242D #2D9824
tetradic
#242D98 #982467 #988F24 #249855
square
#242D98 #982467 #988F24 #249855
split-complementary
#242D98 #985524 #679824
monochromatic
#0D1035 #181E67 #242D98 #303CC9 #5E67D9

Accessibility & contrast

On white

11.03
#242D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#242D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D98
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D98#FFFFFF#000000##FFFFFF
##242D981.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #242d98;
/* rgb */ color: rgb(36, 45, 152);
/* oklch */ color: oklch(37.0% 0.171 271.0);
Tailwind
colors: {
  custom: {
    50: '#7266b7',
    500: '#242d98',
    950: '#000000',
  },
}
SCSS
$custom: #242d98;
$custom-light: #7266b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242d98",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 235.345,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37043,
    "c": 0.17128,
    "h": 271
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#242D98
secondary
#BEB65A
accent
#D843E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242D98

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

Preview Lab → · Contrast checker → · Palette generator →

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